projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e27907
)
td can be null
author
bdemsky
<bdemsky>
Tue, 17 Feb 2009 23:41:59 +0000
(23:41 +0000)
committer
bdemsky
<bdemsky>
Tue, 17 Feb 2009 23:41:59 +0000
(23:41 +0000)
Robust/src/IR/Tree/SemanticCheck.java
patch
|
blob
|
history
diff --git
a/Robust/src/IR/Tree/SemanticCheck.java
b/Robust/src/IR/Tree/SemanticCheck.java
index 0acbbe66a0e1c09adf136d315d9283eab500890c..d2fc664cd33f383c5dc91460bf8e0db171ebf770 100644
(file)
--- a/
Robust/src/IR/Tree/SemanticCheck.java
+++ b/
Robust/src/IR/Tree/SemanticCheck.java
@@
-562,7
+562,7
@@
public class SemanticCheck {
}
void checkInstanceOfNode(Descriptor md, SymbolTable nametable, InstanceOfNode tn, TypeDescriptor td) {
- if (!td.isBoolean())
+ if (
td!=null&&
!td.isBoolean())
throw new Error("Expecting type "+td+"for instanceof expression");
checkTypeDescriptor(tn.getExprType());