Ignore:
Timestamp:
2013-09-11T00:32:31+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar - Avoid throwing NullPointerException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java

    r5949 r6229  
    173173
    174174        private void setValue(Entry entry, String fieldName, String value) throws SAXException {
    175             if (entry == null) {
    176                 throw new NullPointerException("entry cannot be null");
    177             }
     175            CheckParameterUtil.ensureParameterNotNull(entry, "entry");
    178176            if (fieldName.equals("class") || fieldName.equals("default") || fieldName.equals("throw") || fieldName.equals("new") || fieldName.equals("null")) {
    179177                fieldName += "_";
Note: See TracChangeset for help on using the changeset viewer.