Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-1041

Converting Stride to Java with disabled frames causes error and exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.3
    • Component/s: Stride editor
    • Sprint:
      BlueJ 4.1.3

      Description

      When trying to convert a Stride class to Java, some disabled frames will be deleted. And then trying to open the editor after that will fire an NPE (maybe on Mac only):

      Exception in thread "JavaFX Application Thread" java.lang.NullPointerException

      at bluej.stride.generic.FrameCursor.animateShowHide(FrameCursor.java:564)
      at bluej.stride.generic.FrameCursor.lambda$new$4(FrameCursor.java:389)
      at bluej.utility.javafx.JavaFXUtil.lambda$addChangeListener$20(JavaFXUtil.java:1318)
      at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
      .....
      at com.sun.glass.ui.mac.MacWindow._setVisible(Native Method)
      at com.sun.glass.ui.Window.setVisible(Window.java:625)
      ....
      at javafx.stage.Stage.show(Stage.java:259)
      at bluej.editor.stride.FXTabbedEditor.setWindowVisible(FXTabbedEditor.java:515)
      at bluej.editor.stride.FXTabbedEditor.addTab(FXTabbedEditor.java:428)
      at bluej.editor.stride.FXTabbedEditor.addTab(FXTabbedEditor.java:414)
      at bluej.editor.moe.MoeEditor.setEditorVisible(MoeEditor.java:628)
      at bluej.pkgmgr.target.EditableTarget.open(EditableTarget.java:81)
      at bluej.pkgmgr.target.ClassTarget.doubleClick(ClassTarget.java:2175)
      at bluej.pkgmgr.target.Target.lambda$new$1(Target.java:143)

        Attachments

          Activity

            People

            • Assignee:
              nccb Neil Brown
              Reporter:
              amjad Amjad Altadmri
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: