mirror of https://github.com/apache/nifi.git
NIFI-12913 Corrected NPE for Python Log Listener ID
This closes #8526 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
4d825e6b65
commit
2303a15f8e
|
@ -361,7 +361,9 @@ public class PythonProcess {
|
||||||
}
|
}
|
||||||
|
|
||||||
private synchronized void killProcess() {
|
private synchronized void killProcess() {
|
||||||
StandardLogLevelChangeHandler.getHandler().removeListener(logListenerId);
|
if (logListenerId != null) {
|
||||||
|
StandardLogLevelChangeHandler.getHandler().removeListener(logListenerId);
|
||||||
|
}
|
||||||
|
|
||||||
if (server != null) {
|
if (server != null) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue