From e3625c4e0f05ef785768bdb6629a03b926b411f1 Mon Sep 17 00:00:00 2001 From: Denis Molony Date: Fri, 18 Mar 2016 08:47:01 +1100 Subject: [PATCH] changed assertion --- src/com/bytezone/diskbrowser/visicalc/Cell.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/bytezone/diskbrowser/visicalc/Cell.java b/src/com/bytezone/diskbrowser/visicalc/Cell.java index 591d895..1618e13 100644 --- a/src/com/bytezone/diskbrowser/visicalc/Cell.java +++ b/src/com/bytezone/diskbrowser/visicalc/Cell.java @@ -192,21 +192,23 @@ class Cell implements Comparable, Value @Override public String getText () { - assert type == CellType.VALUE; + assert type == CellType.VALUE : "Cell type: " + type; return value.getText (); } @Override public boolean isError () { - assert type == CellType.VALUE; + assert type == CellType.VALUE : "Cell type: " + type; return value.isError (); } @Override public boolean isNotAvailable () { - assert type == CellType.VALUE; + // assert type == CellType.VALUE : "Cell type: " + type; + if (!isValue ()) + return true; return value.isNotAvailable (); }