felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vvalc...@apache.org
Subject svn commit: r1306203 - /felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java
Date Wed, 28 Mar 2012 07:51:04 GMT
Author: vvalchev
Date: Wed Mar 28 07:51:04 2012
New Revision: 1306203

URL: http://svn.apache.org/viewvc?rev=1306203&view=rev
Log:
Fixed FELIX-3405 NPE in Web Console
https://issues.apache.org/jira/browse/FELIX-3405

Modified:
    felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java

Modified: felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java?rev=1306203&r1=1306202&r2=1306203&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java
(original)
+++ felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/AbstractWebConsolePlugin.java
Wed Mar 28 07:51:04 2012
@@ -31,6 +31,7 @@ import javax.servlet.http.*;
 import org.apache.commons.io.IOUtils;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;
+import org.osgi.service.log.LogService;
 
 
 /**
@@ -898,7 +899,7 @@ public abstract class AbstractWebConsole
         }
 
         // template file does not exist, return an empty string
-        log( "readTemplateFile: File '" + templateFile + "' not found through class " + clazz
); //$NON-NLS-1$ //$NON-NLS-2$
+        log( LogService.LOG_ERROR, "readTemplateFile: File '" + templateFile + "' not found
through class " + clazz ); //$NON-NLS-1$ //$NON-NLS-2$
         return ""; //$NON-NLS-1$
     }
 



Mime
View raw message