constellation icon indicating copy to clipboard operation
constellation copied to clipboard

Notes View Null Pointer Exception

Open Constellation-Developer opened this issue 2 years ago • 4 comments

Prerequisites

  • [ ] Put an X between the brackets on this line if you have done all of the following:

    • Running the latest version of Constellation

    • Attached the Support Package via Help > Support Package

    • Checked the FAQs: https://github.com/constellation-app/constellation/wiki/FAQ

    • Checked that your issue isn’t already filed: https://github.com/constellation-app/constellation/issues

    • Checked that there is not already a module that provides the described functionality: https://github.com/constellation-app/constellation/wiki/Catalogue-of-Repositories

Description

Linux OS. Current Master. Running via NetBeans. When working on the graph with Notes View opened, an exception occurs.

java.lang.NullPointerException
	at au.gov.asd.tac.constellation.views.notes.NotesViewPane.createNote(NotesViewPane.java:622)
	at au.gov.asd.tac.constellation.views.notes.NotesViewPane.lambda$updateNotesUI$13(NotesViewPane.java:517)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
	at au.gov.asd.tac.constellation.views.notes.NotesViewPane.lambda$updateNotesUI$14(NotesViewPane.java:516)
	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
[catch] at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
	at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
	at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
	at java.base/java.lang.Thread.run(Thread.java:834)

Steps to Reproduce

  1. Open Constellation
  2. Open New Graph
  3. Add a few vertices
  4. Enable the Notes View filter to show all note types
  5. Create one user note
  6. Use select in box to make some auto notes
  7. Experimental -> build graph -> sphere graph builder

Expected behaviour: [What you expect to happen] No exception to occur Actual behaviour: [What actually happens] Exception occurs. Reproduces how often: [What percentage of the time does it reproduce?] 20%

Additional Information

The opening of the Sphere Graph Builder Pane may not be a prerequisite of this issue being replicated as it seems to stem from the "createNotes()" method which appears to be updating the notes when a new plugin report occurs.

Constellation-Developer avatar Oct 28 '21 00:10 Constellation-Developer

Hello @Constellation-Developer, thank you for your interest in our work! If you have a question about using Constellation then please have a read of our Quick Start Guide. If you are a developer then it is advised to go through the Developer Training Guide. Note that we have recently migrated to NetBeans 11 however the examples in the training guide still reference NetBeans 8.2. We are working on a new version so just bear that in mind. PS: I'm just an automated script, not a human being.

github-actions[bot] avatar Oct 28 '21 00:10 github-actions[bot]

This issue is stale because it has been open for 6 months with no activity. Consider reviewing and taking an action on this issue.

github-actions[bot] avatar Feb 16 '23 00:02 github-actions[bot]

This issue is stale because it has been open for 6 months with no activity. Consider reviewing and taking an action on this issue.

github-actions[bot] avatar Aug 23 '23 00:08 github-actions[bot]

This issue is stale because it has been open for 6 months with no activity. Consider reviewing and taking an action on this issue.

github-actions[bot] avatar Feb 25 '24 00:02 github-actions[bot]