sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1492765 - /sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/logging/MonolineFormatter.java
Date Thu, 13 Jun 2013 17:03:48 GMT
Author: desruisseaux
Date: Thu Jun 13 17:03:47 2013
New Revision: 1492765

URL: http://svn.apache.org/r1492765
Log:
Fixed NullPointerException.

Modified:
    sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/logging/MonolineFormatter.java

Modified: sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/logging/MonolineFormatter.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/logging/MonolineFormatter.java?rev=1492765&r1=1492764&r2=1492765&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/logging/MonolineFormatter.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/logging/MonolineFormatter.java
[UTF-8] Thu Jun 13 17:03:47 2013
@@ -425,6 +425,7 @@ loop:   for (int i=0; ; i++) {
     private void sourceFormat(String format) throws IllegalArgumentException {
         if (format == null) {
             sourceFormat = NO_SOURCE;
+            return;
         }
         format = CharSequences.trimWhitespaces(format).toLowerCase(Locale.US);
         for (int i=0; i<FORMAT_LABELS.length; i++) {



Mime
View raw message