We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fefae7f commit 9a343ecCopy full SHA for 9a343ec
src/main/java/org/scijava/annotations/AnnotationProcessor.java
@@ -257,7 +257,8 @@ public OutputStream openOutput(final String annotationName)
257
return fileObject.openOutputStream();
258
}
259
final String prefix =
260
- uri.substring(0, uri.length() - annotationName.length());
+ uri == null ? "" : uri.substring(0, uri.length() -
261
+ annotationName.length());
262
final File file = new File(prefix + path);
263
final File parent = file.getParentFile();
264
if (parent != null && !parent.isDirectory() && !parent.mkdirs()) {
0 commit comments