Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-1207

NPE in UniqueValueType.checkForDuplicates() when the forward is empty in an @Jpf.ExceptionHandler method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0, 1.0.1, 1.0.2
    • V.Next
    • NetUI
    • None

    Description

      The NetUI annotation processor will through a NullPointerException in UniqueValueType.checkForDuplicates() when the forward is empty in an @Jpf.ExceptionHandler method.

      I will attach a page flow Controller to use to reproduce and/or test.

      Here's the stack trace...

      java.lang.NullPointerException
      at
      org.apache.beehive.netui.compiler.grammar.UniqueValueType.checkForDuplicates(UniqueValueType.java:133)
      at
      org.apache.beehive.netui.compiler.grammar.UniqueValueType.onCheck(UniqueValueType.java:107)
      at
      org.apache.beehive.netui.compiler.AnnotationMemberType.check(AnnotationMemberType.java:69)
      at
      org.apache.beehive.netui.compiler.AnnotationGrammar.check(AnnotationGrammar.java:154)
      at
      org.apache.beehive.netui.compiler.AnnotationGrammar.check(AnnotationGrammar.java:143)
      at
      org.apache.beehive.netui.compiler.AnnotationGrammar.check(AnnotationGrammar.java:83)
      at
      org.apache.beehive.netui.compiler.FlowControllerChecker.checkMethod(FlowControllerChecker.java:583)
      at
      org.apache.beehive.netui.compiler.FlowControllerChecker.onCheckInternal(FlowControllerChecker.java:157)
      at
      org.apache.beehive.netui.compiler.FlowControllerChecker.onCheck(FlowControllerChecker.java:103)
      at org.apache.beehive.netui.compiler.BaseChecker.check(BaseChecker.java:44)
      at
      org.apache.beehive.netui.compiler.processor.BaseCoreAnnotationProcessor.check(BaseCoreAnnotationProcessor.java:67)
      at
      org.apache.beehive.netui.compiler.processor.TwoPhaseCoreAnnotationProcessor.check(TwoPhaseCoreAnnotationProcessor.java:153)
      at
      org.apache.beehive.netui.compiler.processor.PageFlowCoreAnnotationProcessor.check(PageFlowCoreAnnotationProcessor.java:84)
      at
      org.apache.beehive.netui.compiler.processor.TwoPhaseCoreAnnotationProcessor.check(TwoPhaseCoreAnnotationProcessor.java:145)
      at
      org.apache.beehive.netui.compiler.processor.TwoPhaseCoreAnnotationProcessor.process(TwoPhaseCoreAnnotationProcessor.java:91)
      at
      org.apache.beehive.netui.compiler.processor.BaseCoreAnnotationProcessor.process(BaseCoreAnnotationProcessor.java:107)
      at
      org.apache.beehive.netui.compiler.apt.BaseAnnotationProcessorFactory$DelegatingAnnotationProcessor.process(BaseAnnotationProcessorFactory.java:75)

      Attachments

        1. Controller.java
          2 kB
          Howard Carlin Rogers

        Activity

          People

            jzhuo Julie Zhuo
            crogers Howard Carlin Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: