Skip to content

Commit 5767758

Browse files
committed
Update LICENSE year to 2026 and add nil check for JSONData in jsonStringFromArray method in NSObject+Extensions.m
1 parent ad7fd57 commit 5767758

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ContentstackInternal/NSObject+Extensions.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ - (NSArray *)arrayFromJSONData:(NSData *)data {
294294
- (NSString *)jsonStringFromArray:(NSArray*)array {
295295
if (array == nil) { return nil; }
296296
NSData *JSONData = [NSJSONSerialization dataWithJSONObject:array options:0 error:NULL];
297+
if (JSONData == nil) { return nil; }
297298
return [[NSString alloc] initWithData:JSONData encoding:NSUTF8StringEncoding];
298299
}
299300

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2025 Contentstack
3+
Copyright (c) 2012-2026 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)