Skip to content

Commit

Permalink
Avoid NPE when log.getParent() returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Feb 12, 2014
1 parent b312d0a commit db97d0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com/xmlcalabash/model/DeclareStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ private int logLevel(Logger logger) {

while (log != null && level == null) {
log = log.getParent();
level = log.getLevel();
if (log != null) {
level = log.getLevel();
}
}

if (level == null) {
Expand Down

0 comments on commit db97d0c

Please sign in to comment.