NullPointerException in CourseColor.getColor() when using plugin #124
Replies: 1 comment
-
Thanks @Kirrr1999 for notifying us of this issue, with full stack trace information! This issue should now be resolved in the latest version of the plugin. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
When using the plugin to open new exercise in Pycharm the options do not load and you get an pop up , an internal IDE error occurs due to a NullPointerException in the CourseColor.getColor() method. This seems to be caused by a missing null-check.
Steps to Reproduce:
Open IntelliJ with the Dodona plugin installed.
Attempt to open the exercise identification dialog.
Observe IDE error popup.
Expected behavior:
The plugin should handle null CourseColor values gracefully without throwing an exception.
Stack Trace:
lua
Copy code
java.lang.NullPointerException: Cannot invoke "io.github.thepieterdc.dodona.data.CourseColor.getColor()" because "colour" is null
at io.github.thepieterdc.dodona.plugin.ui.Icons.color(Icons.java:84)
...
(at io.github.thepieterdc.dodona.plugin.tasks.IdentifyTask.execute(IdentifyTask.java:29))
Beta Was this translation helpful? Give feedback.
All reactions