Permalink
Browse files

SafeGaurdFormethodSignatureForSelector

  • Loading branch information...
1 parent 4cdf82d commit cf60d1f2e1715481f9b5fd9767d96c3b67572b51 钟少奋 committed Jan 4, 2017
Showing with 4 additions and 0 deletions.
  1. +4 −0 JSPatch/JPEngine.m
View
@@ -58,6 +58,10 @@ - (Class)unboxClass
{
#if TARGET_OS_IPHONE
#ifdef __LP64__
+ if (!signature) {
+ return nil;
+ }
+
if ([[UIDevice currentDevice].systemVersion floatValue] < 7.1) {
BOOL isReturnDouble = (strcmp([signature methodReturnType], "d") == 0);
BOOL isReturnFloat = (strcmp([signature methodReturnType], "f") == 0);

0 comments on commit cf60d1f

Please sign in to comment.