Changeset 10633 in josm


Ignore:
Timestamp:
2016-07-25T09:04:34+02:00 (8 years ago)
Author:
Don-vip
Message:

NPE seen in unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NotificationManager.java

    r10611 r10633  
    154154            if (currentNotificationPanel != null) {
    155155                currentNotificationPanel.setVisible(false);
    156                 ((JFrame) Main.parent).getLayeredPane().remove(currentNotificationPanel);
     156                JFrame parent = (JFrame) Main.parent;
     157                if (parent != null) {
     158                    parent.getLayeredPane().remove(currentNotificationPanel);
     159                }
    157160                currentNotificationPanel = null;
    158161            }
Note: See TracChangeset for help on using the changeset viewer.