Added try catch NPE in rememberSyncState.