Skip to content

Commit

Permalink
Merge pull request #223 from mziccard/fix-npe-itstoragetest-afterclass
Browse files Browse the repository at this point in the history
Check storage not null before deleting bucket in ITStorageTest
  • Loading branch information
aozarov committed Oct 8, 2015
2 parents 234f964 + c23b9a2 commit 2171251
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static void beforeClass() {
@AfterClass
public static void afterClass()
throws ExecutionException, TimeoutException, InterruptedException {
if (!RemoteGcsHelper.forceDelete(storage, bucket, 5, TimeUnit.SECONDS)) {
if (storage != null && !RemoteGcsHelper.forceDelete(storage, bucket, 5, TimeUnit.SECONDS)) {
if (log.isLoggable(Level.WARNING)) {
log.log(Level.WARNING, "Deletion of bucket {0} timed out, bucket is not empty", bucket);
}
Expand Down

0 comments on commit 2171251

Please sign in to comment.