Bug fixed: crash from Google Play

This commit is contained in:
Aleksander Nowakowski
2016-10-21 13:24:53 +02:00
parent e2850218d2
commit 217d7a3abb

View File

@@ -77,7 +77,8 @@ public class UARTConfigurationSynchronizer {
* Closes the synchronizer.
*/
public void close() {
mGoogleApiClient.disconnect();
if (mGoogleApiClient != null)
mGoogleApiClient.disconnect();
mGoogleApiClient = null;
}