Fix potential NPE in DesktopIntegration.notifyLinux

This commit is contained in:
0xb00bface 2020-12-21 12:30:29 +01:00
parent 6875de9b14
commit 10b9819114
1 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,8 @@ public class DesktopIntegration {
});
new Thread(new StreamRedirector(p.getInputStream(), System.out)).start(); // NOSONAR
new Thread(new StreamRedirector(p.getErrorStream(), System.err)).start(); // NOSONAR
} catch (NullPointerException e) {
// can happen at start, ignore
} catch (IOException e1) {
LOG.error("Notification failed", e1);
}