felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r909719 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
Date Sat, 13 Feb 2010 04:00:27 GMT
Author: rickhall
Date: Sat Feb 13 04:00:26 2010
New Revision: 909719

URL: http://svn.apache.org/viewvc?rev=909719&view=rev
Log:
Check for null or empty class name. (FELIX-2071)

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java?rev=909719&r1=909718&r2=909719&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/ModuleImpl.java Sat Feb
13 04:00:26 2010
@@ -667,7 +667,7 @@
         // We do not call getClassLoader().loadClass() for arrays because
         // it does not correctly handle array types, which is necessary in
         // cases like deserialization using a wrapper class loader.
-        if (name.charAt(0) == '[')
+        if ((name != null) && (name.length() > 0) && (name.charAt(0) ==
'['))
         {
             return Class.forName(name, false, getClassLoader());
         }
@@ -2345,4 +2345,4 @@
 
         return sb.toString();
     }
-}
\ No newline at end of file
+}



Mime
View raw message