Ignore:
Timestamp:
2015-05-02T00:55:19+02:00 (9 years ago)
Author:
Don-vip
Message:

fix potential NPEs and Sonar issues related to serialization

File:
1 edited

Legend:

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

    r8287 r8308  
    4444        }
    4545
    46         protected void throwException(Exception e) throws XmlParsingException {
    47             throw new XmlParsingException(e).rememberLocation(locator);
     46        @Override
     47        protected void throwException(String message, Exception e) throws XmlParsingException {
     48            throw new XmlParsingException(message, e).rememberLocation(locator);
    4849        }
    4950
     
    103104        @Override
    104105        public void error(SAXParseException e) throws SAXException {
    105             throwException(e);
     106            throwException(null, e);
    106107        }
    107108
    108109        @Override
    109110        public void fatalError(SAXParseException e) throws SAXException {
    110             throwException(e);
     111            throwException(null, e);
    111112        }
    112113    }
Note: See TracChangeset for help on using the changeset viewer.