Towdium / JustEnoughCalculation

A simple minecraft mod help you calculate the cost for recipes
Other
54 stars 41 forks source link

Null check for player in TooltipEventHandler #19

Closed Virtuoel closed 8 years ago

Virtuoel commented 8 years ago

The EntityPlayer from the event is not explicitly specified as Nonnull and I've had stacktraces caused by NullPointerExceptions from "event.getEntityPlayer()" in ItemTooltipEvent handlers on occasion, so I feel like there should be a null check just in case.

Towdium commented 8 years ago

Many thanks!