Ignore:
Timestamp:
11.01.2009 21:42:16 (3 years ago)
Author:
ulfl
Message:

fix a null pointer exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java

    r1254 r1255  
    7878            return (styles != null) ? (IconElemStyle)styles.get(osm) : null; 
    7979 
    80         if(osm.mappaintStyle == null) { 
     80        if(osm.mappaintStyle == null && styles != null) { 
    8181            osm.mappaintStyle =  styles.get(osm); 
    8282            osm.isMappaintArea = styles.isArea(osm); 
     
    8989            return styles.isArea((Way)osm); 
    9090 
    91         if(osm.mappaintStyle == null) { 
     91        if(osm.mappaintStyle == null && styles != null) { 
    9292            osm.mappaintStyle = styles.get(osm); 
    9393            osm.isMappaintArea = styles.isArea(osm); 
Note: See TracChangeset for help on using the changeset viewer.