Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
fix(enroll): check if data is empty
Browse files Browse the repository at this point in the history
Signed-off-by: Rafa Hernandez <[email protected]>
  • Loading branch information
rafaelje authored and Hector Rondon committed Mar 28, 2018
1 parent 57b9260 commit 0a60281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected void onCreate(Bundle savedInstanceState) {

// if broker is on cache open the main activity
String broker = cache.getBroker();
if(broker != null) {
if(!broker.isEmpty()) {
// if user is enrolled show landing screen
FlyveLog.d(cache.getSessionToken());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected void onCreate(Bundle savedInstanceState) {
MqttData cache = new MqttData( StartEnrollmentActivity.this );

String broker = cache.getBroker();
if(broker != null) {
if(!broker.isEmpty()) {
openMain();
}

Expand Down

0 comments on commit 0a60281

Please sign in to comment.