Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-688

NPE in Transition#getTargetStateId()

    XMLWordPrintable

    Details

      Description

      When you try to get the TargetStateId with getTargetStateId() and no target has been specified a NPE occurs, when the toString() method is called. A simple bugfix:

      Index: spring-webflow/src/main/java/org/springframework/webflow/engine/Transition.java
      ===================================================================
      — spring-webflow/src/main/java/org/springframework/webflow/engine/Transition.java (revision 12431)
      +++ spring-webflow/src/main/java/org/springframework/webflow/engine/Transition.java (working copy)
      @@ -115,6 +115,9 @@
      }

      public String getTargetStateId() {
      + if (targetStateResolver == null)

      { + return null; + }

      return targetStateResolver.toString();
      }

        Attachments

          Activity

            People

            Assignee:
            kdonald Keith Donald
            Reporter:
            simono Simon Olofsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: