diff --git a/src/main/java/io/bitsquare/app/gui/BitsquareApp.java b/src/main/java/io/bitsquare/app/gui/BitsquareApp.java index c03fe0cb42..1160edffce 100644 --- a/src/main/java/io/bitsquare/app/gui/BitsquareApp.java +++ b/src/main/java/io/bitsquare/app/gui/BitsquareApp.java @@ -27,7 +27,6 @@ import io.bitsquare.gui.util.ImageUtil; import io.bitsquare.persistence.Persistence; import io.bitsquare.user.User; -import com.google.common.base.Preconditions; import com.google.common.base.Throwables; import com.google.inject.Guice; @@ -47,6 +46,7 @@ import javafx.stage.Stage; import org.springframework.core.env.Environment; +import static com.google.common.base.Preconditions.checkNotNull; import static io.bitsquare.app.BitsquareEnvironment.*; public class BitsquareApp extends Application { @@ -61,8 +61,7 @@ public class BitsquareApp extends Application { @Override public void start(Stage primaryStage) throws IOException { - Preconditions.checkArgument(env != null, "Environment must not be null"); - + checkNotNull(env, "Environment must not be null"); bitsquareAppModule = new BitsquareAppModule(env, primaryStage); injector = Guice.createInjector(bitsquareAppModule);