Update ReflectMjAPI.java

Removed a potential NPE (this can occur when a class contains a null mjBattery object)
This commit is contained in:
AlexIIL 2014-04-19 16:07:57 +01:00
parent b30995aea0
commit 9d9b134859

View file

@ -84,6 +84,8 @@ public class ReflectMjAPI {
}
public static BatteryObject getMjBattery (Object o) {
if (o == null)
return null;
BatteryField f = getMjBattery (o.getClass());
if (f == null) {