renderingModuleRegistry fix getModuleRenderingByModuleId() cycle which would cause nullpointer exception
@@ -61,7 +61,7 @@ public ModuleRendering getModuleRenderingByModuleId(Name renderingModuleId) {
// TODO HashMap for storing
ModuleRendering moduleRenderingInstance = null;
for (ModuleRendering moduleRendering : orderedModuleRenderingInstances) {
- if (moduleRenderingInstance.getProvidingModule().equals(renderingModuleId)) {
+ if (moduleRendering.getProvidingModule().equals(renderingModuleId)) {
moduleRenderingInstance = moduleRendering;
}
}
