kourendlibrary: Fix NPE while loading

This commit is contained in:
Max Weber
2018-03-15 16:21:31 -06:00
parent 4893e11740
commit 159b6e99b6

View File

@@ -102,6 +102,10 @@ public class KourendLibraryOverlay extends Overlay
}
LocalPoint localBookcase = LocalPoint.fromWorld(client, caseLoc);
if (localBookcase == null)
{
continue;
}
Point screenBookcase = Perspective.worldToCanvas(client, localBookcase.getX(), localBookcase.getY(), caseLoc.getPlane(), 25);
if (screenBookcase != null)