Skip to content
Snippets Groups Projects
Commit 4551b1f6 authored by Zealar's avatar Zealar
Browse files

Fix NPE in seeds when target is null

Reported by: @irlex
parent 1eeddad8
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,10 @@ public class Seed implements IItemHandler
}
final L2Object tgt = playable.getTarget();
if (tgt == null)
{
return false;
}
if (!tgt.isNpc())
{
playable.sendPacket(SystemMessageId.INCORRECT_TARGET);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment