lishid / OpenInv

Open anyone's inventory as a chest, real-time!
GNU General Public License v3.0
120 stars 97 forks source link

Null pointer check #10

Closed Fysac closed 10 years ago

Fysac commented 10 years ago

Players who haven't joined your server since the UUID conversion will have a null name. As a result, if you try to /openinv a player who has joined your server since then, the loop can break due to a NPE while checking other players. This null check should fix that problem.