Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
MINOR: Safeguards width and height accessor on possible null object (#…
Browse files Browse the repository at this point in the history
…1827)

Signed-off-by: Frauke Fritz <frauke.fritz@here.com>
  • Loading branch information
FraukeF committed Sep 8, 2020
1 parent 41efc2d commit e711539
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion @here/harp-mapview/lib/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,12 @@ export namespace MapViewUtils {
objectSize: MemoryUsage,
visitedObjects: Map<string, boolean>
): void {
if (texture === null || texture === undefined || texture.image === undefined) {
if (
texture === null ||
texture === undefined ||
texture.image === undefined ||
texture.image === null
) {
return;
}

Expand Down

0 comments on commit e711539

Please sign in to comment.