Skip to content

Commit ea27252

Browse files
committed
Merge pull request #51 from matt-freedmanpi/Crash_Fix
FIX: Fix crasher found via Crashlytics.
2 parents 49b3894 + 20906db commit ea27252

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

netfox/NFXProtocol.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ public class NFXProtocol: NSURLProtocol
8585
self.client!.URLProtocol(self, didLoadData: data!)
8686
}
8787

88-
self.client!.URLProtocolDidFinishLoading(self)
88+
if let client = self.client {
89+
client.URLProtocolDidFinishLoading(self)
90+
}
8991

9092

9193
}).resume()

0 commit comments

Comments
 (0)