commit | f7f306c31855c41e288afb2e5b431d2bbf50ac99 | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Fri Oct 05 08:48:11 2007 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Fri Oct 05 08:48:11 2007 +0000 |
tree | 3c993f79aac970bb11a3144f5e768eecbcae0814 | |
parent | 0a6e85a648b97b53a69d306378214e0d239e15a9 [diff] |
Fix NPE by returning an empty array. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@582130 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java b/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java index 68a6715..83e87db 100644 --- a/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java +++ b/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java
@@ -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());