fixed bug that might contribute to issue #189

This commit is contained in:
Jeremy Long
2015-09-05 06:48:00 -04:00
parent 49736a87aa
commit 1f0e789575

View File

@@ -441,8 +441,9 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
} }
final Object obj = current.getContextValue(getDataFileContextKey()); final Object obj = current.getContextValue(getDataFileContextKey());
if (obj != null) { if (obj != null) {
if (obj instanceof File) { if (obj instanceof String) {
return (File) obj; File f = new File((String) obj);
return f;
} }
} else { } else {
if (getLog().isDebugEnabled()) { if (getLog().isDebugEnabled()) {