Ignore:
Timestamp:
2007-07-27T00:20:19+02:00 (17 years ago)
Author:
christofd
Message:

handle null newFrame in mapFrameInitialized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/navigator/src/at/dallermassl/josm/plugin/navigator/NavigatorPlugin.java

    r3749 r3766  
    6363     */
    6464    @Override
    65     public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {   
    66         newFrame.toolBarActions.add(
    67             new IconToggleButton(new NavigatorModeAction(newFrame, navigatorModel, navigatorLayer)));
     65    public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
     66        if(newFrame != null) {
     67            newFrame.toolBarActions.add(
     68                new IconToggleButton(new NavigatorModeAction(newFrame, navigatorModel, navigatorLayer)));
     69        }
    6870    }
    6971
Note: See TracChangeset for help on using the changeset viewer.