Fixed issue with p_stack_frame being null when parsing java class method

Found a NULL pointer bug, unexpected from spec.