Changeset 12587 in josm for trunk/tools/checkstyle/src/org


Ignore:
Timestamp:
2017-08-10T12:16:32+02:00 (7 years ago)
Author:
bastiK
Message:

see #14794 - fix NPE

File:
1 edited

Legend:

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

    r12586 r12587  
    7272
    7373    private boolean hasProperText(DetailNode javadoc) {
     74        if (javadoc == null) return false;
    7475        for (DetailNode child : javadoc.getChildren()) {
    7576            if (child.getType() == JavadocTokenTypes.TEXT) {
     
    8990            foundTopLevelClass = true;
    9091            if (!hasJavadoc(ast)) {
    91                 this.log(ast.getLineNo(), "no/incomplete Javadoc for top level class or interface");
     92                this.log(ast.getLineNo(), "incomplete or missing Javadoc for top level class or interface");
    9293            }
    9394        }
Note: See TracChangeset for help on using the changeset viewer.