Changeset 4044


Ignore:
Timestamp:
05/14/08 17:21:23 (12 years ago)
Author:
melissa
Message:

Fixed NPE when creating a window title for a multi-file dataset with no file pattern.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/Importer.java

    r3960 r4044  
    753753      if (fp != null) { 
    754754        title = fp.getPattern(); 
     755        if (title == null) { 
     756          title = file; 
     757          if (title.indexOf(".") != -1) { 
     758            title = title.substring(0, title.lastIndexOf(".")); 
     759          } 
     760        } 
    755761        title = title.substring(title.lastIndexOf(File.separator) + 1); 
    756762      } 
Note: See TracChangeset for help on using the changeset viewer.