-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
Workaround Exists
-
-
Low
We're missing some good precondition checks in place.
Erring code:
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "ejb-security-test.jar");
jar.addPackage(AnnotatedSLSB.class.getPackage());
jar.addAsManifestResource("ejb/security/ejb-jar.xml", "ejb-jar.xml"); // HERE, if the file in the first arg does not exist
return jar;
Makes:
Caused by: java.lang.NullPointerException
at org.jboss.shrinkwrap.impl.base.container.ContainerBase.fileFromResource(ContainerBase.java:1481)
at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsManifestResource(ContainerBase.java:547)
at org.jboss.as.test.spec.ejb3.security.EJBSecurityTestCase.createDeployment(EJBSecurityTestCase.java:47)
... 55 more
- relates to
-
SHRINKWRAP-315 NPE in ContainerBase.addAsLibrary
- Closed