You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
InterpolationException silently swallowed in AbstractEarModule.getBundleFileName() #515
In AbstractEarModule.java:268-271, an InterpolationException from MappingUtils.evaluateFileNameMapping() is silently swallowed:
} catch (InterpolationExceptione) {
// We currently ignore this here// FIXME: should we handle this better?
}
If the file name mapping evaluation fails, the exception is completely ignored. The bundleFileName field remains null, and downstream code using getUri() (which calls getBundleFileName()) may get unexpected null values. The FIXME comment confirms this is a known issue.
Expected behavior
At minimum, log a warning:
} catch (InterpolationExceptione) {
getLog().warn("Failed to evaluate file name mapping", e);
}
Activity