Caught possible NullPointer exception in sketch loading