Skip to content

Commit

Permalink
add default property name to avoid crash on ParseRole Query
Browse files Browse the repository at this point in the history
  • Loading branch information
alann-maulana committed Dec 22, 2021
1 parent fae0875 commit a22b46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/parse_query.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ParseQuery<T extends ParseObject> {
// ignore: invalid_use_of_visible_for_testing_member
final creator = ParseObject.kExistingCustomObjects[genericType];
if (creator != null) {
final parseObject = creator(<String, dynamic>{}) as T;
final parseObject = creator(<String, dynamic>{'name':''}) as T;
this.className = parseObject.className;
} else {
throw Exception('className required');
Expand Down

0 comments on commit a22b46b

Please sign in to comment.