Skip to content

Commit

Permalink
Additional check for null/empty plate name values
Browse files Browse the repository at this point in the history
This should result in plate names defaulting to the relative file name
if a reader sets the plate name to an empty string.
  • Loading branch information
melissalinkert committed Jan 16, 2017
1 parent 9c7b9a2 commit 7508291
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/blitz/src/ome/formats/model/WellProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ private Plate validatePlate(int plateIndex) {
if (userSpecifiedPlateName != null) {
plate.setName(rstring(userSpecifiedPlateName));
}
if (plate.getName() == null) {
if (plate.getName() == null || plate.getName().getValue() == null ||
plate.getName().getValue().isEmpty())
{
log.warn("Missing plate name for: " + container.LSID);
String filename = store.getReader().getCurrentFile();
filename = new File(filename).getName();
Expand Down

0 comments on commit 7508291

Please sign in to comment.