Fixed a non-object call and added NullPointerException if searchInstance or updateIns...