diff --git a/src/main/java/org/jboss/metadata/annotation/creator/ejb/jboss/RolesAllowedProcessor.java b/src/main/java/org/jboss/metadata/annotation/creator/ejb/jboss/RolesAllowedProcessor.java index cd53734..5e66ae4 100644 --- a/src/main/java/org/jboss/metadata/annotation/creator/ejb/jboss/RolesAllowedProcessor.java +++ b/src/main/java/org/jboss/metadata/annotation/creator/ejb/jboss/RolesAllowedProcessor.java @@ -79,6 +79,9 @@ public class RolesAllowedProcessor { for (MethodMetaData existingMethod : existingPerm.getMethods()) { + if(existingMethod == null || existingMethod.getMethodParams() == null) { + return; + } // If this method's already been added if (existingMethod.getMethodName().equals(mmd.getMethodName()) && existingMethod.getMethodParams().equals(mmd.getMethodParams()))