Commit 5aaaf40c authored by Julian Dierkes's avatar Julian Dierkes
Browse files

fixed problem ArchTypeSymbol

parent 994533a9
...@@ -52,12 +52,14 @@ public class ArchTypeSymbol extends CommonSymbol { ...@@ -52,12 +52,14 @@ public class ArchTypeSymbol extends CommonSymbol {
public HashMap<String, String> getElementRange() { public HashMap<String, String> getElementRange() {
String min="", max=""; String min="", max="";
ASTRange range = domain.getRange(); ASTRange range = null;
if (domain.isPresentRange())
range = domain.getRange();
if(domain.isRational() || domain.isWholeNumber() || domain.isNaturalNumber() || domain.isComplex()) { if(domain.isRational() || domain.isWholeNumber() || domain.isNaturalNumber() || domain.isComplex()) {
if(range.hasNoLowerLimit()) { min="-inf"; } else { if(range == null || range.hasNoLowerLimit()) { min="-inf"; } else {
min = Double.toString(range.getStartValue().doubleValue()); min = Double.toString(range.getStartValue().doubleValue());
} }
if (range.hasNoUpperLimit()) { max="inf"; } else { if (range == null || range.hasNoUpperLimit()) { max="inf"; } else {
max = Double.toString(range.getEndValue().doubleValue()); max = Double.toString(range.getEndValue().doubleValue());
} }
} else { // domain.isBoolean() } else { // domain.isBoolean()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment