Skip to content

Commit 8a6e161

Browse files
committed
Change initialization order
1 parent 27575e8 commit 8a6e161

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/io/snabble/sdk/Project.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ public class Project {
9090
Project(JsonObject jsonObject) throws IllegalArgumentException {
9191
snabble = Snabble.getInstance();
9292

93-
parse(jsonObject);
94-
9593
internalStorageDirectory = new File(snabble.getInternalStorageDirectory(), id + "/");
9694
okHttpClient = Snabble.getInstance().getOkHttpClient()
9795
.newBuilder()
9896
.addInterceptor(new SnabbleAuthorizationInterceptor(this))
9997
.addInterceptor(new AcceptedLanguageInterceptor())
10098
.build();
10199

100+
parse(jsonObject);
101+
102102
boolean generateSearchIndex = snabble.getConfig().generateSearchIndex;
103103

104104
productDatabase = new ProductDatabase(this, id + ".sqlite3", generateSearchIndex);

0 commit comments

Comments
 (0)