Skip to content
Browse files

Fix for crash in networks/forks. Closes #66

  • Loading branch information...
1 parent 29b4c73 commit 78c2cff2e3c3203c817902c8e5ee62a0b9618841 @dbloete dbloete committed Apr 3, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −1 Classes/GHNetworksParserDelegate.m
  2. +1 −0 Classes/iOctocat.m
  3. +1 −1 Info.plist
View
2 Classes/GHNetworksParserDelegate.m
@@ -16,7 +16,7 @@ - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName nam
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName {
if ([elementName isEqualToString:@"network"]) {
- if (currentFork) {
+ if (currentFork && currentFork.user && currentFork.name) {
currentFork.repository = [[GHRepository alloc] initWithOwner:currentFork.user.login andName:currentFork.name];
[resources addObject:currentFork];
}
View
1 Classes/iOctocat.m
@@ -94,6 +94,7 @@ - (GHUser *)currentUser {
}
- (GHUser *)userWithLogin:(NSString *)theUsername {
+ if (!theUsername || [theUsername isEqualToString:@""]) return nil;
GHUser *user = [users objectForKey:theUsername];
if (user == nil) {
user = [GHUser userWithLogin:theUsername];
View
2 Info.plist
@@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>1.1.7</string>
+ <string>1.1.7.1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>

0 comments on commit 78c2cff

Please sign in to comment.
Something went wrong with that request. Please try again.