Remove crash caused by renaming styles
This commit is contained in:
parent
6b3b1ec5ca
commit
d4217e34b6
1 changed files with 6 additions and 4 deletions
|
@ -179,7 +179,11 @@ public class RendererRegistry {
|
|||
}
|
||||
if(externalRenderers.containsKey(name)){
|
||||
is = new FileInputStream(externalRenderers.get(name));
|
||||
} else if(internalRenderers.containsKey(name)){
|
||||
} else {
|
||||
if (!internalRenderers.containsKey(name)) {
|
||||
log.error("Rendering style not found: " + name);
|
||||
name = DEFAULT_RENDER;
|
||||
}
|
||||
File fl = getFileForInternalStyle(name);
|
||||
if (fl.exists()) {
|
||||
is = new FileInputStream(fl);
|
||||
|
@ -187,8 +191,6 @@ public class RendererRegistry {
|
|||
copyFileForInternalStyle(name);
|
||||
is = RenderingRulesStorage.class.getResourceAsStream(internalRenderers.get(name));
|
||||
}
|
||||
} else {
|
||||
throw new IllegalArgumentException("Not found " + name); //$NON-NLS-1$
|
||||
}
|
||||
return is;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue