Ignore:
Timestamp:
2021-02-01T10:33:15+01:00 (5 years ago)
Author:
malcolmh
Message:

catch null pointer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/src/render/Rules.java

    r35685 r35693  
    183183                else
    184184                        return null;
    185                 if ((item = atts.get(att)) == null)
     185                if ((atts == null) || ((item = atts.get(att)) == null))
    186186                        return null;
    187187                else
     
    703703
    704704        private static void cables() {
    705                 if ((Renderer.zoom >= 16) && (feature.geom.length < 2)) {
     705                if ((Renderer.zoom >= 16) && (feature.geom.length < 20)) {
    706706                        if (feature.type == Obj.CBLSUB) {
    707707                                Renderer.lineSymbols(Areas.Cable, 0.0, null, null, 0, Symbols.Mline);
     
    13001300
    13011301        private static void pipelines() {
    1302                 if ((Renderer.zoom >= 16) && (feature.geom.length < 2)) {
     1302                if ((Renderer.zoom >= 16) && (feature.geom.length < 20)) {
    13031303                        if (feature.type == Obj.PIPSOL) {
    13041304                                switch ((CatPIP) getAttEnum(feature.type, Att.CATPIP)) {
Note: See TracChangeset for help on using the changeset viewer.