[BUGFIX] avoid Call to a member function getValue() on a non-object