Changeset 36170 in osm for applications/editors/josm


Ignore:
Timestamp:
2023-10-15T20:20:28+02:00 (13 months ago)
Author:
Mkyral
Message:

PointInfo: Fix NPE issue

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

Legend:

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

    r36122 r36170  
    33
    44    <!-- enter the SVN commit message -->
    5     <property name="commit.message" value="PointInfo: Switch to SVG icons"/>
     5    <property name="commit.message" value="PointInfo: Fix NPE issue"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    77    <property name="plugin.main.version" value="18723"/>
  • applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/ruian/AddrPlaces.java

    r32848 r36170  
    7474
    7575    public void setCisloTyp(String v) {
    76         m_cislo_typ = v;
     76        m_cislo_typ = (v == null ? "" : v);
    7777    }
    7878
    7979    public void setCisloDomovni(String v) {
    80         m_cislo_domovni = v;
     80        m_cislo_domovni = (v == null ? "" : v);
    8181    }
    8282
    8383    public void setCisloOrientacni(String v) {
    84         m_cislo_orientacni = v;
     84        m_cislo_orientacni = (v == null ? "" : v);
    8585    }
    8686
     
    9090
    9191    public void setUlice(String v) {
    92         m_ulice = v;
     92        m_ulice = (v == null ? "" : v);
    9393    }
    9494
     
    9898
    9999    public void setCastObce(String v) {
    100         m_cast_obce = v;
     100        m_cast_obce = (v == null ? "" : v);
    101101    }
    102102
     
    106106
    107107    public void setMestskaCast(String v) {
    108         m_mestska_cast = v;
     108        m_mestska_cast = (v == null ? "" : v);
    109109    }
    110110
     
    114114
    115115    public void setObec(String v) {
    116         m_obec = v;
     116        m_obec = (v == null ? "" : v);
    117117    }
    118118
     
    122122
    123123    public void setOkres(String v) {
    124         m_okres = v;
     124        m_okres = (v == null ? "" : v);
    125125    }
    126126
     
    130130
    131131    public void setKraj(String v) {
    132         m_kraj = v;
     132        m_kraj = (v == null ? "" : v);
    133133    }
    134134
    135135    public void setPsc(String v) {
    136         m_psc = v;
     136        m_psc = (v == null ? "" : v);
    137137    }
    138138
Note: See TracChangeset for help on using the changeset viewer.