mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-03 04:16:19 -04:00
Fixed cooldown issue potentially blocking commands
Any object that inherits TangibleObject and has commands utilized on it will need to make sure their initAfterDBLoad() calls super.initAfterDBLoad(). Fixes: java.lang.NullPointerException at resources.objects.tangible.TangibleObject.hasCooldown(TangibleObject.java:626) at services.command.CommandService.callCommand(CommandService.java:95) at services.command.CommandService$1.handlePacket(CommandService.java:1011) at engine.resources.service.NetworkDispatch$1.run(NetworkDispatch.java:202) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
This commit is contained in:
@@ -104,6 +104,7 @@ public class TangibleObject extends SWGObject implements Serializable {
|
||||
public void initAfterDBLoad() {
|
||||
super.init();
|
||||
defendersList = new Vector<TangibleObject>();
|
||||
cooldowns = new ConcurrentHashMap<String, Long>();
|
||||
}
|
||||
|
||||
public Baseline getOtherVariables() {
|
||||
|
||||
Reference in New Issue
Block a user