Ignore:
Timestamp:
2016-04-03T16:12:22+02:00 (8 years ago)
Author:
Don-vip
Message:

fix coverity 1353745 + add unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r10097 r10105  
    509509            if (!s.isEmpty()) {
    510510                UnicodeBlock block = Character.UnicodeBlock.of(s.charAt(0));
    511                 if (block.toString().contains("CJK")) {
     511                if (block != null && block.toString().contains("CJK")) {
    512512                    result = s.length() < 4;
    513513                } else {
Note: See TracChangeset for help on using the changeset viewer.