overlay renderer: fix npe when client is null
This commit is contained in:
@@ -183,6 +183,11 @@ public class OverlayRenderer extends MouseListener implements KeyListener
|
|||||||
|
|
||||||
final Client client = clientProvider.get();
|
final Client client = clientProvider.get();
|
||||||
|
|
||||||
|
if (client == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (final Overlay overlay : overlays)
|
for (final Overlay overlay : overlays)
|
||||||
{
|
{
|
||||||
final Point location = loadOverlayLocation(overlay);
|
final Point location = loadOverlayLocation(overlay);
|
||||||
|
|||||||
Reference in New Issue
Block a user