Skip to content

Commit

Permalink
Fix Issue #40 autoboxing of None key or values
Browse files Browse the repository at this point in the history
Change-Id: Ib836eed7e2d8f68449ff8e853426401e4af2e6a6
  • Loading branch information
ndjensen committed Feb 24, 2016
1 parent bc2edaf commit 8144158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jep/pyembed.c
Expand Up @@ -1239,11 +1239,11 @@ jobject pyembed_box_py(JNIEnv *env, PyObject *result)
pos = 0;
while (PyDict_Next(result, &pos, &key, &value)) {
jkey = pyembed_box_py(env, key);
if (!jkey) {
if (jkey == NULL && PyErr_Occurred()) {
return NULL;
}
jvalue = pyembed_box_py(env, value);
if (!jvalue) {
if (jvalue == NULL && PyErr_Occurred()) {
return NULL;
}

Expand Down

0 comments on commit 8144158

Please sign in to comment.