Skip to content
This repository has been archived by the owner on Dec 7, 2017. It is now read-only.

Commit

Permalink
Fixing crashed when used with tgz file.
Browse files Browse the repository at this point in the history
File used: ftp://anonymous@ftp.astron.com/pub/file/file-5.11.tar.gz
  • Loading branch information
Jan Weiß committed Oct 16, 2012
1 parent 3fd85b1 commit 049182e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions GEMagicKit.m
Expand Up @@ -124,9 +124,12 @@ + (NSArray *)typeHierarchyForType:(NSString *)uniformType {
NSArray *superTypeHierarchy = [GEMagicKit typeHierarchyForType:superType];
[typeHierarchy addObjectsFromArray:superTypeHierarchy];
}
} else {
typeHierarchy = [NSArray arrayWithObject:superTypes]; // superTypes is actually a string
} else if ([superTypes isKindOfClass:[NSString class]]) {
typeHierarchy = [NSArray arrayWithObject:superTypes];
}
else {
typeHierarchy = nil;
}

return typeHierarchy;
}
Expand Down

0 comments on commit 049182e

Please sign in to comment.