Skip to content

Commit

Permalink
add exception message in NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
awidesky committed May 4, 2021
1 parent cf3e2aa commit 4d0bb8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/awidesky/YoutubeClipboardAutoDownloader/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private static void readProperties() {

} catch (NullPointerException e2) {

GUI.warning("config.txt has no or invalid data!", "NullPointerException\nI'll initiate config.txt with default...", null);
GUI.warning("config.txt has no or invalid data!", "NullPointerException : %e%\nI'll initiate config.txt with default...", e2);

} finally {

Expand Down Expand Up @@ -359,6 +359,7 @@ public static ExecutorService getExecutorservice() {
public static void kill(int exitcode) {

Main.log("YoutubeAudioAutoDownloader exit code : " + exitcode);
if (executorService != null) executorService.shutdownNow();
Main.writeProperties();
System.exit(exitcode);

Expand Down

0 comments on commit 4d0bb8f

Please sign in to comment.