Ticket #92 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

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) (diff)

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.

Change History

comment:1 Changed 13 years ago by curtis

  • Description modified (diff)

comment:2 Changed 13 years ago by melissa

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r2585.

Note: See TracTickets for help on using tickets.