diff --git a/src/Logic/Actors/InitialMapPositioning.ts b/src/Logic/Actors/InitialMapPositioning.ts index 1c7439bf5..c65934941 100644 --- a/src/Logic/Actors/InitialMapPositioning.ts +++ b/src/Logic/Actors/InitialMapPositioning.ts @@ -70,7 +70,7 @@ export default class InitialMapPositioning { }) this.useTerrain = new ImmutableStore(layoutToUse.enableTerrain) - if(initialHash.match(/^(node|way|relation)\/[0-9]+$/)){ + if(initialHash?.match(/^(node|way|relation)\/[0-9]+$/)){ const [type, id] = initialHash.split("/") OsmObjectDownloader.RawDownloadObjectAsync(type, Number(id), Constants.osmAuthConfig.url+"/").then(osmObject => { if(osmObject === "deleted"){