Fix potential NPE in DesktopIntegration.notifyLinux
This commit is contained in:
parent
6875de9b14
commit
10b9819114
|
@ -135,6 +135,8 @@ public class DesktopIntegration {
|
||||||
});
|
});
|
||||||
new Thread(new StreamRedirector(p.getInputStream(), System.out)).start(); // NOSONAR
|
new Thread(new StreamRedirector(p.getInputStream(), System.out)).start(); // NOSONAR
|
||||||
new Thread(new StreamRedirector(p.getErrorStream(), System.err)).start(); // NOSONAR
|
new Thread(new StreamRedirector(p.getErrorStream(), System.err)).start(); // NOSONAR
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
// can happen at start, ignore
|
||||||
} catch (IOException e1) {
|
} catch (IOException e1) {
|
||||||
LOG.error("Notification failed", e1);
|
LOG.error("Notification failed", e1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue