PluginManager is being used by modules before it is created

Description

Modules are loaded and started before PluginManager is created. We need to create the PluginManager before loaded modules and then start the plugin manager.

Know exception for this problem:
Exception in thread "Update Manager" java.lang.NullPointerException
at org.jivesoftware.wildfire.update.UpdateManager.buildPluginsUpdateList(UpdateManager.java:573)
at org.jivesoftware.wildfire.update.UpdateManager.loadSavedInfo(UpdateManager.java:699)
at org.jivesoftware.wildfire.update.UpdateManager.access$000(UpdateManager.java:46)
at org.jivesoftware.wildfire.update.UpdateManager$1.run(UpdateManager.java:104)

Environment

None
Fixed

Assignee

Gaston Dombiak

Reporter

Gaston Dombiak