felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r582130 - /felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java
Date Fri, 05 Oct 2007 08:48:11 GMT
Author: cziegeler
Date: Fri Oct  5 01:48:11 2007
New Revision: 582130

URL: http://svn.apache.org/viewvc?rev=582130&view=rev
Log:
Fix NPE by returning an empty array.

Modified:
    felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java

Modified: felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java
URL: http://svn.apache.org/viewvc/felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java?rev=582130&r1=582129&r2=582130&view=diff
==============================================================================
--- felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java
(original)
+++ felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java
Fri Oct  5 01:48:11 2007
@@ -56,7 +56,7 @@
 
     public JavaField[] getFields() {
         // TODO Auto-generated method stub
-        return null;
+        return new JavaField[0];
     }
 
     public JavaClassDescription[] getImplementedInterfaces() throws MojoExecutionException
{
@@ -64,7 +64,7 @@
         if (implemented == null || implemented.length == 0) {
             return null;
         }
-        
+
         JavaClassDescription[] jcd = new JavaClassDescription[implemented.length];
         for (int i=0; i < jcd.length; i++) {
             jcd[i] = manager.getJavaClassDescription(implemented[i].getName());



Mime
View raw message