File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
OneSignalSDK/onesignal/core/src/main/java/com/onesignal/user/internal Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,8 @@ internal open class UserManager(
166
166
Logging .log(LogLevel .DEBUG , " setTag(key: $key , value: $value )" )
167
167
168
168
if (key.isEmpty()) {
169
- throw Exception (" Cannot add tag with empty key" )
169
+ Logging .log(LogLevel .ERROR , " Cannot add tag with empty key" )
170
+ return
170
171
}
171
172
172
173
_propertiesModel .tags[key] = value
@@ -177,7 +178,8 @@ internal open class UserManager(
177
178
178
179
tags.forEach {
179
180
if (it.key.isEmpty()) {
180
- throw Exception (" Cannot add tag with empty key" )
181
+ Logging .log(LogLevel .ERROR , " Cannot add tag with empty key" )
182
+ return
181
183
}
182
184
}
183
185
@@ -190,7 +192,8 @@ internal open class UserManager(
190
192
Logging .log(LogLevel .DEBUG , " removeTag(key: $key )" )
191
193
192
194
if (key.isEmpty()) {
193
- throw Exception (" Cannot remove tag with empty key" )
195
+ Logging .log(LogLevel .ERROR , " Cannot remove tag with empty key" )
196
+ return
194
197
}
195
198
196
199
_propertiesModel .tags.remove(key)
@@ -201,7 +204,8 @@ internal open class UserManager(
201
204
202
205
keys.forEach {
203
206
if (it.isEmpty()) {
204
- throw Exception (" Cannot remove tag with empty key" )
207
+ Logging .log(LogLevel .ERROR , " Cannot remove tag with empty key" )
208
+ return
205
209
}
206
210
}
207
211
You can’t perform that action at this time.
0 commit comments