Changeset 27269 in osm for applications/editors


Ignore:
Timestamp:
2011-12-17T19:04:21+01:00 (13 years ago)
Author:
akks
Message:

'fixed NPE at startup'

Location:
applications/editors/josm/plugins/routing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routing/build.xml

    r27119 r27269  
    2626-->
    2727<project name="routing" default="dist" basedir=".">
    28     <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
    29     <property name="plugin.main.version" value="4549"/>
     28    <property name="commit.message" value="fixed NPE at startup"/>
     29    <property name="plugin.main.version" value="4666"/>
    3030    <!-- Define some properties -->
    3131    <property name="josm" location="../../core/dist/josm-custom.jar"/>
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingPlugin.java

    r26119 r27269  
    198198            newFrame.addMapMode(removeRouteNodeButton);
    199199            newFrame.addMapMode(moveRouteNodeButton);
    200             newFrame.toolGroup.add(addRouteNodeButton);
    201             newFrame.toolGroup.add(removeRouteNodeButton);
    202             newFrame.toolGroup.add(moveRouteNodeButton);
     200//            newFrame.toolGroup.add(addRouteNodeButton);
     201//            newFrame.toolGroup.add(removeRouteNodeButton);
     202//            newFrame.toolGroup.add(moveRouteNodeButton);
    203203            // Hide them by default
    204204            addRouteNodeButton.setVisible(false);
     
    216216     */
    217217    public void activeLayerChange(Layer oldLayer, Layer newLayer) {
    218                
     218                if (addRouteNodeButton==null) return;
    219219                if (newLayer instanceof RoutingLayer) {                 /*   show Routing toolbar and dialog window  */
    220220                        addRouteNodeButton.setVisible(true);
Note: See TracChangeset for help on using the changeset viewer.