From 9ebabf2864565d2dbb3ca81a3f4337458f317b0f Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Tue, 28 Jun 2016 06:10:41 +0000
Subject: [PATCH] SSDM-3745: bug in Jython25InterpreterFactory fixed

SVN: 36758
---
 .../cisd/common/jython/v25/Jython25InterpreterFactory.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/source/java/ch/systemsx/cisd/common/jython/v25/Jython25InterpreterFactory.java b/common/source/java/ch/systemsx/cisd/common/jython/v25/Jython25InterpreterFactory.java
index a8750976a49..12199f9f72c 100644
--- a/common/source/java/ch/systemsx/cisd/common/jython/v25/Jython25InterpreterFactory.java
+++ b/common/source/java/ch/systemsx/cisd/common/jython/v25/Jython25InterpreterFactory.java
@@ -153,7 +153,7 @@ public class Jython25InterpreterFactory implements IJythonInterpreterFactory
             try
             {
                 PyFunction function = interpreter.get(name, PyFunction.class);
-                return new Jython25Function(function);
+                return function == null ? null : new Jython25Function(function);
             } catch (Exception e)
             {
                 return null;
-- 
GitLab