MrNaikito / towny

Automatically exported from code.google.com/p/towny
0 stars 1 forks source link

Towny NPE on Town Upkeep Collection #1637

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the server for a long time
2. Let the server generate a new day automatically.
3. See it error out on an NPE on collecting upkeep from towns.

What is the expected output? : Towny new day to collect upkeep from all towns 
and not error out.

What do you see instead? : NPE while collecting and getting a Town's upkeep 
cost. http://pastie.org/private/vs9gr63zeatvvaotvdlg

What is your Towny version number? : 0.82.1.0

What is your TownyChat version number? : 0.36

What is your Bukkit version number? : Spigot-630

What operating system? : Linux Debian 6

Please use pastebin.com to link the following files:
- Your full server startup from server.log,
 http://pastie.org/private/4xjcyiovvvuxceahstjspa
- Your towny config.yml,
 http://pastebin.com/s8C0a4GK
- Your townyperms.yml,
 http://pastebin.com/wDGNwPS5
- Your permissions file.
 N/A it is with a permissions plugin which does database and isn't a problem.

Skipping these files is not an option. It is the easiest way to diagnose an 
issue ticket properly. If you do skip this step then your ticket will most 
likely be deleted and you will be asked to resubmit.

Original issue reported on code.google.com by graywolf...@gmail.com on 21 Mar 2013 at 7:50

GoogleCodeExporter commented 9 years ago
I showed this to elgarl and he traced it back to your townLevels in the config. 

{{{  town_level:

  - upkeepModifier: 14.0

    namePostfix: ' Ruins'

    mayorPrefix: 'Leader '

    mayorPostfix: ''

    townBlockLimit: 1

    namePrefix: ''

    numResidents: 1 }}}

Set the numResidents in that to 0 and in the next townLevel set the 
numResidents to 1

Original comment by LlmD...@gmail.com on 21 Mar 2013 at 11:44

GoogleCodeExporter commented 9 years ago
Okay thanks, I have made the changes and will report back tomorrow after the 
Towny New Day happens.

Original comment by graywolf...@gmail.com on 21 Mar 2013 at 11:53

GoogleCodeExporter commented 9 years ago
Awesome it worked, thanks.

This can be closed.

Original comment by graywolf...@gmail.com on 22 Mar 2013 at 6:47

GoogleCodeExporter commented 9 years ago

Original comment by LlmD...@gmail.com on 23 Mar 2013 at 2:42