Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-782

ContextualProviderInjector NPE for classes without generic

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.2.Final, 3.1.0.CR1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Errai 3.0.1.Final

      Description

      In org.jboss.errai.ioc.rebind.ioc.injector.basic.ContextualProviderInjector
      the variable pType declared in line 54 is null after the switch if the class which should be injected by an ContextualTypeProvider has no generic types.

      Don't know if the bug is a missing null check or the MetaField class that returns null for getParameterizedType(). Because the getParameterizedType method has no javadoc.

      The class java doc of org.jboss.errai.ioc.client.api.ContextualTypeProvider says that it gives the class types if they are present so i assumed that it can handle classes without them.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mbarkley Max Barkley
                Reporter:
                hillkorn Dennis Schumann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: