fix java nullpoint