Skip to content

Commit

Permalink
Fixed error for enumerator with enpty map.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Aug 13, 2009
1 parent d170f8e commit 3eb773b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private void makeIterator(Type subjectType, IValue subjectValue){
// Map
} else if(subjectType.isMapType()){
checkNoStrategy(subjectType);
if(!subjectType.getElementType().isVoidType())
if(!subjectType.getKeyType().isVoidType())
checkMayOccur(patType, subjectType.getKeyType());
iterator = ((IMap) subjectValue).iterator();

Expand Down

0 comments on commit 3eb773b

Please sign in to comment.