CitizensDev/Citizens — Issue #382: /quest status fails when in delivery quest
Author: maehluml
Created: 2011-11-10 11:07:34+00:00
State: open

I get this error when in a delivery quest:

2011-11-10 11:58:59 [SEVERE] java.lang.NullPointerException
2011-11-10 11:58:59 [SEVERE]	at net.citizensnpcs.utils.StringUtils.format(StringUtils.java:249)
2011-11-10 11:58:59 [SEVERE]	at net.citizensnpcs.utils.StringUtils.format(StringUtils.java:245)
2011-11-10 11:58:59 [SEVERE]	at net.citizensnpcs.utils.StringUtils.formatter(StringUtils.java:274)
2011-11-10 11:58:59 [SEVERE]	at net.citizensnpcs.questers.quests.types.DeliveryQuest.getStatus(DeliveryQuest.java:65)
2011-11-10 11:58:59 [SEVERE]	at net.citizensnpcs.questers.QuesterCommands.viewCurrentQuestStatus(QuesterCommands.java:415)
2011-11-10 11:58:59 [SEVERE]	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2011-11-10 11:58:59 [SEVERE]	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2011-11-10 11:58:59 [SEVERE]	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-11-10 11:58:59 [SEVERE]	at java.lang.reflect.Method.invoke(Method.java:597)
2011-11-10 11:58:59 [SEVERE]	at net.citizensnpcs.resources.sk89q.CommandsManager.executeMethod(CommandsManager.java:522)
2011-11-10 11:58:59 [SEVERE]	at net.citizensnpcs.resources.sk89q.CommandsManager.execute(CommandsManager.java:406)
2011-11-10 11:58:59 [SEVERE]	at net.citizensnpcs.Citizens.onCommand(Citizens.java:202)
2011-11-10 11:58:59 [SEVERE]	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
2011-11-10 11:58:59 [SEVERE]	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
2011-11-10 11:58:59 [SEVERE]	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
2011-11-10 11:58:59 [SEVERE]	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
2011-11-10 11:58:59 [SEVERE]	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
2011-11-10 11:58:59 [SEVERE]	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
2011-11-10 11:58:59 [SEVERE]	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
2011-11-10 11:58:59 [SEVERE]	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
2011-11-10 11:58:59 [SEVERE]	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
2011-11-10 11:58:59 [SEVERE]	at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:501)
2011-11-10 11:58:59 [SEVERE]	at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
2011-11-10 11:58:59 [SEVERE]	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
2011-11-10 11:58:59 [SEVERE]	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
2011-11-10 11:58:59 [SEVERE]	at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

Quest config:

AFarmersWish:
texts:
description: I need some bone meal. 10 should do. Can you get some for me?
completion: This will save my farm!.
acceptance: Challenge accepted.
repeats: 1
objectives:
'0':
'0':
type: delivery
materialid: 351:15
npcdestination: 28
amount: 10
rewards:
'0':
type: money
money: 50