Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-10093

CDK: NPE when element fires of @JsfComponent is used.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.Milestone4, 4.0.0.Milestone5
    • Fix Version/s: 4.0.0.Milestone6
    • Component/s: cdk
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Apply attached patch to trunk/ui/input.
      Run mvn clean install

      Show
      Apply attached patch to trunk/ui/input. Run mvn clean install

      Description

      Seem problem is appeared only when @Event and @JsfComponent are used in different projects.
      Maven output:
      An annotation processor threw an uncaught exception.
      Consult the following stack trace for details.
      java.lang.NullPointerException
      at java.util.TreeMap.put(TreeMap.java:541)
      at java.util.TreeSet.add(TreeSet.java:238)
      at org.richfaces.cdk.generate.freemarker.ModelElementBaseTemplateModel.getImportClasses(ModelElementBaseTemplateModel.java:137)
      at org.richfaces.cdk.generate.freemarker.ModelElementBaseTemplateModel.get(ModelElementBaseTemplateModel.java:111)
      at freemarker.core.Environment.getGlobalVariable(Environment.java:976)
      at freemarker.core.Environment.getVariable(Environment.java:962)
      at freemarker.core.Identifier._getAsTemplateModel(Identifier.java:70)
      at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
      at freemarker.core.IteratorBlock.accept(IteratorBlock.java:87)
      at freemarker.core.Environment.visit(Environment.java:196)
      at freemarker.core.Environment.include(Environment.java:1375)
      at freemarker.core.Include.accept(Include.java:155)
      at freemarker.core.Environment.visit(Environment.java:196)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alexsmirnov Alexander Smirnov
                  Reporter:
                  Konstantin.Mishin Konstantin Mishin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: