fixed a bug in descriptor calculation due to not catching a null jObjRef