Commits

Bob Ippolito  committed 4bba39b

fixed crash for objc.selector(somemethod), was assuming signature!=NULL

  • Participants
  • Parent commits 2db2b07

Comments (0)

Files changed (1)

File pyobjc/Modules/objc/selector.m

 		signature = python_signature_to_objc(rettype, argtypes,
 			signature_buf, sizeof(signature_buf));
 		if (signature == NULL) return NULL;
-	} else {
+	} else if (signature != NULL) {
 		/* Check if the signature string is valid */
 		char* cur;