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

Stride has problems with some parent classes

    Details

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

      Description

      The Stride editor has problems with a class inherited from Processing's PApplet class – I think because it encounters an issue scanning the fields and methods. This might be the number of fields and methods causing a problem, or just that one of them is causing an NPE somewhere. Stack trace:

      ```
      Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
      at bluej.utility.Utility.mapList(Utility.java:1108)
      at bluej.stride.framedjava.frames.ClassFrame.lambda$null$36(ClassFrame.java:483)
      at java.util.Comparator.lambda$comparing$ea9a8b3a$1(Comparator.java:436)
      at java.util.Comparator.lambda$thenComparing$36697e65$1(Comparator.java:217)
      at java.util.TimSort.mergeHi(TimSort.java:837)
      at java.util.TimSort.mergeAt(TimSort.java:516)
      at java.util.TimSort.mergeForceCollapse(TimSort.java:457)
      at java.util.TimSort.sort(TimSort.java:254)
      at java.util.Arrays.sort(Arrays.java:1512)
      at java.util.ArrayList.sort(ArrayList.java:1454)
      at bluej.stride.framedjava.frames.ClassFrame.lambda$null$37(ClassFrame.java:483)
      at java.util.HashMap.forEach(HashMap.java:1288)
      at bluej.stride.framedjava.frames.ClassFrame.lambda$withInheritedItems$38(ClassFrame.java:483)
      at bluej.editor.stride.FrameEditorTab.lambda$withAccessibleMembers$67(FrameEditorTab.java:1972)
      at bluej.utility.javafx.JavaFXUtil.runNowOrLater(JavaFXUtil.java:581)
      at bluej.editor.stride.FrameEditorTab.withAccessibleMembers(FrameEditorTab.java:1972)
      at bluej.stride.framedjava.frames.ClassFrame.withInheritedItems(ClassFrame.java:462)
      at bluej.stride.framedjava.frames.ClassFrame.updateInheritedItems(ClassFrame.java:332)
      at bluej.stride.framedjava.frames.ClassFrame.saved(ClassFrame.java:301)
      at bluej.editor.stride.FrameEditorTab.saved(FrameEditorTab.java:1963)
      ```

      (which also seems to cause a knock-on NPE in the compiler)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: