Skip to content

Commit e750f61

Browse files
authored
Merge pull request #58 from jzgoda/jzgoda-foundGroups-patch
Adds null check for foundGroups
2 parents b23766b + 47ff2ef commit e750f61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ exports.getGroups = function(name) {
134134
reject(error.localizedDescription);
135135
}
136136

137-
if (foundGroups.count > 0) {
137+
if (foundGroups && foundGroups.count > 0) {
138138
var groups = [],
139139
i = 0,
140140
groupModel = null;

0 commit comments

Comments
 (0)