java.lang.NullPointerException: Cannot invoke "java.io.PrintStream.println(String)" because "this.out" is null #141
-
Hey :) I am trying to package my updater with jpackage. Unfortunately, only the packaging part works well, starting the application afterwards leads to the above mentioned error message. Here is the Stacktrace:
Caused by calling: config.update(UpdateOptions.archive(path)); Path path = Paths.get("C:/Program/update.zip"); The provided path does exist. I think this might be a problem with the packaged jar inside an .exe file. EDIT: After some looking around I also found that there is a possible NPE (which I am actually running into right now). Until this is fixed, I can only wonder what the real problem of my code is. I created a ticket. Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You may pass a path that doesn't exist to Thanks for the issue you opened. I'll look into it when I have a chance. Meanwhile, you might try to create your own |
Beta Was this translation helpful? Give feedback.
You may pass a path that doesn't exist to
config.update()
, it will create the file. I'm not sure what causes it, as, as you correctly found, there's an exception in the exception reporting itself, thus masking the real cause.Thanks for the issue you opened. I'll look into it when I have a chance. Meanwhile, you might try to create your own
UpdateHandler
to capture the exception yourself.