summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/provider/src/main/java/org/onap/ccsdk/sli/core/utils/JREFileResolver.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/utils/provider/src/main/java/org/onap/ccsdk/sli/core/utils/JREFileResolver.java b/utils/provider/src/main/java/org/onap/ccsdk/sli/core/utils/JREFileResolver.java
index cc164d042..9ae094f1a 100755
--- a/utils/provider/src/main/java/org/onap/ccsdk/sli/core/utils/JREFileResolver.java
+++ b/utils/provider/src/main/java/org/onap/ccsdk/sli/core/utils/JREFileResolver.java
@@ -55,7 +55,14 @@ public class JREFileResolver implements PropertiesFileResolver {
@Override
public Optional<File> resolveFile(final String filename) {
- final Bundle bundle = FrameworkUtil.getBundle(this.clazz);
+ final Bundle bundle;
+
+ try {
+ bundle = FrameworkUtil.getBundle(this.clazz);
+ } catch (NoClassDefFoundError e) {
+ return Optional.empty();
+ }
+
final File dataFile;
@@ -82,9 +89,13 @@ public class JREFileResolver implements PropertiesFileResolver {
}
return Optional.of(dataFile);
- } catch(final Exception e) {
+ } catch (NoClassDefFoundError e) {
+ return Optional.empty();
+ }
+ catch(final Exception e) {
return Optional.empty();
}
+
}
@Override