summaryrefslogtreecommitdiff
path: root/Juick/RevealPanelViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2014-02-03 16:51:47 +0400
committerGravatar Vitaly Takmazov2014-02-03 16:51:47 +0400
commit57c8c45a4730fe7c980b8b7eadf94ca60b97db43 (patch)
tree162041af6bd2f3d8f383cf9842a356c07068f04c /Juick/RevealPanelViewController.m
parent4fd723c665a2b828447fcc9476c752803f76ea35 (diff)
Still fighting with scroll :(
Diffstat (limited to 'Juick/RevealPanelViewController.m')
-rw-r--r--Juick/RevealPanelViewController.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Juick/RevealPanelViewController.m b/Juick/RevealPanelViewController.m
index 3b6a446..fe44509 100644
--- a/Juick/RevealPanelViewController.m
+++ b/Juick/RevealPanelViewController.m
@@ -69,8 +69,10 @@ static NSString *CellIdentifier = @"NavCell";
color = [UIColor redColor];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
[User get:[[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.username"] callback:^(User *user) {
- [self.titleView.image setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/as/%@.png", user.uid]]];
- [self.titleView.title setText:user.uname];
+ if (user != nil) {
+ [self.titleView.image setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/as/%@.png", user.uid]]];
+ [self.titleView.title setText:user.uname];
+ }
}];
});
} else {