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:
bob 2024-03-17 11:15:14 -05:00 committed by exceptionfactory
parent 4d825e6b65
commit 2303a15f8e
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -361,7 +361,9 @@ public class PythonProcess {
}
private synchronized void killProcess() {
StandardLogLevelChangeHandler.getHandler().removeListener(logListenerId);
if (logListenerId != null) {
StandardLogLevelChangeHandler.getHandler().removeListener(logListenerId);
}
if (server != null) {
try {