Author: simoneg
Date: Mon May 16 20:32:13 2011
New Revision: 1103874

URL: http://svn.apache.org/viewvc?rev=1103874&view=rev
Log:
Guard against NPE for strange AspectJ bug

Modified:
    
labs/magma/trunk/foundation-beans/src/main/java/org/apache/magma/beans/BeanData.java

Modified: 
labs/magma/trunk/foundation-beans/src/main/java/org/apache/magma/beans/BeanData.java
URL: 
http://svn.apache.org/viewvc/labs/magma/trunk/foundation-beans/src/main/java/org/apache/magma/beans/BeanData.java?rev=1103874&r1=1103873&r2=1103874&view=diff
==============================================================================
--- 
labs/magma/trunk/foundation-beans/src/main/java/org/apache/magma/beans/BeanData.java
 (original)
+++ 
labs/magma/trunk/foundation-beans/src/main/java/org/apache/magma/beans/BeanData.java
 Mon May 16 20:32:13 2011
@@ -132,6 +132,7 @@ public class BeanData {
         * @return the {@link PropertyInfo} describing the property the method 
works on, or null if not found.
         */
        public PropertyInfo findProperty(Method method) {
+               if (method == null) return null;
                String name = method.getName();
                if (name.startsWith("set") || name.startsWith("get")) {
                        name = name.substring(3);



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to