Ticket #92 (closed defect: fixed)
Opened 2007-04-04T06:49:48-05:00
Last modified 2007-04-09T15:14:17-05:00
Notebook crashes when given a file from the command line
Reported by: | curtis | Owned by: | melissa |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | notes | Severity: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by curtis)
curtis@rogue:~/svn/java/loci/formats$ notebook /media/hda1/data/sdub/sdub1.pic Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1768) at loci.ome.notebook.Template.parse(Template.java:172) at loci.ome.notebook.Template.<init>(Template.java:81) at loci.ome.notebook.Template.<init>(Template.java:72) at loci.ome.notebook.Notebook.loadTemplate(Notebook.java:176) at loci.ome.notebook.Notebook.<init>(Notebook.java:142) at loci.ome.notebook.Notebook.main(Notebook.java:610)
It looks like the Notebook tries to parse command line arguments as templates rather than input data files. The old Notebook assumed command line arguments were data files, and it would be good for the new Notebook to function that way as well. To specify a different template, the new Notebook could accept a command line flag "-template" or similar.