You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of the calls to prefs.get() will throw exceptions if the key does not exist. For example, if you leave out bootloader.tool, and attempt to burn a bootloader, you will get the following error:
java.lang.NullPointerException
at processing.app.debug.BasicUploader.burnBootloader(BasicUploader.java:276)
Suggestion: modify the get method of Preferences to return a default string instead of a null pointer when a key doesn't exist, or wrap all calls to get() with a try/catch such that the exception is correctly captured and a meaningful message can be returned to the user.