From a5ec84fb65f0a534fceaa2bbfadf4d5e7f0c3446 Mon Sep 17 00:00:00 2001 From: Piotr <PiotrWpl@users.noreply.github.com> Date: Fri, 12 Oct 2018 10:54:04 +0200 Subject: [PATCH] ParseData() should be initialized Because data variable was never initialized, it was always null, and getting values like "masterKey" or "applicationId" will never work correctly. So, we need to initialize it first. --- lib/parse_http_client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse_http_client.dart b/lib/parse_http_client.dart index edf5d05ef..7fd6f31f2 100644 --- a/lib/parse_http_client.dart +++ b/lib/parse_http_client.dart @@ -7,7 +7,7 @@ import 'package:parse_server_sdk/parse_data.dart'; class ParseHTTPClient extends http.BaseClient { final http.Client _client = new http.Client(); final String _userAgent = "Dart Parse SDK 0.1"; - ParseData data; + ParseData data = ParseData(); ParseHTTPClient();