Herocraft/Heroes — comment on commit f9714858516a5bb27ae61bb0e78113a837878396
File: src/com/herocraftonline/dev/heroes/hero/Hero.java line 132
By Afforess:

You need to use the try/finally pattern here instead of just locking and unlocking. If your code throws an exception, it will keep a hold on the lock for all perpetuity, and never unlock.