Explorar o código

PlexParser: Fix PlexExtractToken returning nil

This could lead to crashes on auth error.
Edgar Fouillet %!s(int64=5) %!d(string=hai) anos
pai
achega
8c5c65a797
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SharedSources/ServerBrowsing/Plex/VLCPlexParser.m

+ 1 - 1
SharedSources/ServerBrowsing/Plex/VLCPlexParser.m

@@ -158,7 +158,7 @@ static NSString *const kPlexVLCDeviceName = @"VLC for iOS";
         token = [[NSArray arrayWithArray:_containerInfo] firstObject][@"token"];
     }
 
-    return token;
+    return token ? token : @"";
 }
 
 #pragma mark - Parser