From 316919b6cc2871f385d161763122920438330878 Mon Sep 17 00:00:00 2001 From: maheshacharya Date: Mon, 26 Mar 2018 19:35:45 -0400 Subject: [PATCH] Fix NPE scenario. --- .../java/com/smartsheet/tools/SmartsheetBackupService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/smartsheet/tools/SmartsheetBackupService.java b/src/main/java/com/smartsheet/tools/SmartsheetBackupService.java index 82de549..eaaaaed 100644 --- a/src/main/java/com/smartsheet/tools/SmartsheetBackupService.java +++ b/src/main/java/com/smartsheet/tools/SmartsheetBackupService.java @@ -112,6 +112,9 @@ public int backupOrgTo(File backupFolder) throws Exception { // for each active user, assume the identity of the user to // backup that user's sheets in the user's context (e.g., what // sheets they own, the hierarchy they see in Smartsheet, etc.) + if(status==null){ + continue; + } if (status.equals(USER_ACTIVE_STATUS)) { ProgressWatcher.getInstance()