Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Return nil when creating a TNStropheJID with a nil string

  • Loading branch information...
commit e5f57cbb641a54861df44603776214cdf892ef0d 1 parent 5caec9f
@benlangfeld authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  TNStropheJID.j
View
3  TNStropheJID.j
@@ -105,6 +105,9 @@ TNStropheJIDExceptionJID = @"TNStropheJIDExceptionJID";
*/
- (TNStropheJID)initWithString:(CPString)aStringJID
{
+ if (!aStringJID)
+ return;
+
var node = aStringJID.split("@")[0],
domain,
resource;
Please sign in to comment.
Something went wrong with that request. Please try again.