Permalink
Browse files

fix npe

  • Loading branch information...
1 parent 1d46a71 commit 0c4905be1b2b50fecc38beae3cb2112de0d69082 @gavinking gavinking committed Aug 28, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/com/redhat/ceylon/compiler/typechecker/util/PrintVisitor.java
@@ -84,7 +84,9 @@ private void print(Node node) {
print(" <");
int i=0;
for (ProducedType pt: types) {
- print(pt.getProducedTypeName());
+ if (pt!=null) {
+ print(pt.getProducedTypeName());
+ }
if (++i!=types.size()) {
print(", ");
}

0 comments on commit 0c4905b

Please sign in to comment.