Details
-
Bug
-
Resolution: Fixed
-
Minor
-
1.1 M3
-
None
Description
InputStream xwikicfgis = null; // first try to load the file pointed by the given path // if it does not exist, look for it relative to the classpath File f = new File(xwikicfg); if (f.exists()) { xwikicfgis = new FileInputStream(f); } else { xwikicfgis = econtext.getResourceAsStream(xwikicfg); ...
We need to catch an IOException on "new FileInputStream".
At the same refactor the code to be clean.