Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-164

NPE in DeployableTestBuilder

XMLWordPrintable

      I get:

      java.lang.NullPointerException
      at org.jboss.arquillian.impl.DeployableTestBuilder.build(DeployableTestBuilder.java:82)
      at org.jboss.arquillian.impl.DeployableTestBuilder.build(DeployableTestBuilder.java:71)
      at org.jboss.arquillian.junit.Arquillian.<init>(Arquillian.java:68)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

      Any component that uses a SPI implementation should guard against null values - if there is a non-null requirement of course - and throw an IllegalArgumentException with a descriptive error message.

        1. arq164.diff
          1 kB
        2. DeployableTestBuilderTestCase.java
          0.5 kB
        3. pom.xml
          6 kB

            aslak@redhat.com Aslak Knutsen
            jpederse@redhat.com Jesper Pedersen
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: