Fixed a NULLptr deref in java loader