[JBoss JIRA] Created: (SHRINKWRAP-315) NPE in ContainerBase.addAsLibrary
by Andrew Rubinger (JIRA)
NPE in ContainerBase.addAsLibrary
---------------------------------
Key: SHRINKWRAP-315
URL: https://issues.jboss.org/browse/SHRINKWRAP-315
Project: ShrinkWrap
Issue Type: Bug
Reporter: Andrew Rubinger
Using code:
{code}war.addAsLibrary("xerces/xercesImpl.jar", "xercesImpl.jar");{code}
..if the resourceName doesn't exist, results in:
{code}Caused by: java.lang.NullPointerException
at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsLibrary(ContainerBase.java:1353)
at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsLibrary(ContainerBase.java:1338)
at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsLibrary(ContainerBase.java:1289)
at org.jboss.as.test.spec.xerces.ws.XercesUsageInWebServiceTestCase.createWebServiceDeployment(XercesUsageInWebServiceTestCase.java:74)
... 59 more{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira