Skip to content

Commit 03e2e7d

Browse files
committed
2
1 parent a06483e commit 03e2e7d

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

OpenFlowNodeRED/src/Config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ export class Config {
3131

3232
public static baseurl(): string {
3333
var matches = Config.nodered_id.match(/\d+/);
34-
if (matches.length > 0) {
35-
Config.nodered_id = matches[matches.length - 1]; // Just grab the last number
34+
if (matches !== null && matches !== undefined) {
35+
if (matches.length > 0) {
36+
Config.nodered_id = matches[matches.length - 1]; // Just grab the last number
37+
}
3638
}
3739
if (Config.nodered_domain_schema != "") {
3840
Config.domain = Config.nodered_domain_schema.replace("$nodered_id$", Config.nodered_id)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.172
1+
0.0.173

0 commit comments

Comments
 (0)