commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1674558 - /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/plist/XMLPropertyListConfiguration.java
Date Sat, 18 Apr 2015 19:06:51 GMT
Author: oheger
Date: Sat Apr 18 19:06:50 2015
New Revision: 1674558

URL: http://svn.apache.org/r1674558
Log:
Fixed another IntelliJ warning related to a potential NPE.

Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/plist/XMLPropertyListConfiguration.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/plist/XMLPropertyListConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/plist/XMLPropertyListConfiguration.java?rev=1674558&r1=1674557&r2=1674558&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/plist/XMLPropertyListConfiguration.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration2/plist/XMLPropertyListConfiguration.java
Sat Apr 18 19:06:50 2015
@@ -574,6 +574,7 @@ public class XMLPropertyListConfiguratio
             {
                 // remove the root of the XMLPropertyListConfiguration previously pushed
on the stack
                 PListNodeBuilder builder = pop();
+                assert builder != null : "Stack was empty!";
                 if (peek() instanceof ArrayNodeBuilder)
                 {
                     // create the configuration



Mime
View raw message