This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
What steps will reproduce the problem?1. Let your players create shops2. Wait a couple days3. See the NPE in the console
What is the expected output? What do you see instead? The plugin to fun fine, instead see NPEs in the console.
What version of the product are you using? 0.83
Do you have an error log of what happened? http://dev.bukkit.org/paste/5765/
Please provide any additional information below. There is a shop ad with an '@' (not quotes) in it's name, not sure if that causes anything...except that I can't seem to delete that ad either.
Hmm, this is related to the issue in the problem I was having with the scheduled tasks in 0.82, it seems to have fixed that but I don't see why it would be causing a problem with deleting a shop. The @ shouldn't cause any issues to my knowledge. I'm gonna have to think about this one and tinker around with it.
Reason: Shop class extends ShopAds2 class, which is the plugin class. The plugin class extends PluginBase, so basicly every shop you make is initialized as a new plugin (not loaded as one, though)
Fix: Don't make Shop extend ShopAds2, I can't even think of a reason why this is necessery
I dont use the @ and I have the same issue...
[SEVERE] java.lang.NullPointerException 2012-07-30 04:45:26 [SEVERE] at org.bukkit.plugin.PluginBase.getName(PluginBase.java:29) 2012-07-30 04:45:26 [SEVERE] at org.bukkit.plugin.PluginBase.equals(PluginBase.java:25) 2012-07-30 04:45:26 [SEVERE] at java.util.ArrayList.remove(Unknown Source) 2012-07-30 04:45:26 [SEVERE] at org.hpiz.ShopAds2.Shop.ShopHandler.removeShop(ShopHandler.java:121) 2012-07-30 04:45:26 [SEVERE] at org.hpiz.ShopAds2.Util.Messaging.AdvertisementMessage.advertise(AdvertisementMessage.java:19) 2012-07-30 04:45:26 [SEVERE] at org.hpiz.ShopAds2.Threads.AnnounceThread.run(AnnounceThread.java:80) 2012-07-30 04:45:26 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34) 2012-07-30 04:45:26 [SEVERE] at java.lang.Thread.run(Unknown Source)
To post a comment, please login or register a new account.