Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r10097 r10105 509 509 if (!s.isEmpty()) { 510 510 UnicodeBlock block = Character.UnicodeBlock.of(s.charAt(0)); 511 if (block .toString().contains("CJK")) {511 if (block != null && block.toString().contains("CJK")) { 512 512 result = s.length() < 4; 513 513 } else { -
trunk/test/unit/org/openstreetmap/josm/gui/io/UploadDialogTest.java
r10097 r10105 104 104 assertFalse(UploadDialog.UploadAction.isUploadCommentTooShort("geometric corrections")); 105 105 assertFalse(UploadDialog.UploadAction.isUploadCommentTooShort("几何校正")); 106 // test with unassigned unicode characters ==> no unicode block 107 assertTrue(UploadDialog.UploadAction.isUploadCommentTooShort("\u0860")); 106 108 } 107 109 }
Note:
See TracChangeset
for help on using the changeset viewer.