We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 137772e commit 8b4e96bCopy full SHA for 8b4e96b
objectbox-java/src/main/java/io/objectbox/BoxStoreBuilder.java
@@ -200,6 +200,9 @@ public BoxStoreBuilder androidContext(Object context) {
200
* on Android devices. Note that setting {@link #androidContext(Object)} is required for ReLinker to work.
201
*/
202
public BoxStoreBuilder androidReLinker(Object reLinkerInstance) {
203
+ if (context == null) {
204
+ throw new IllegalArgumentException("Set a Context using androidContext(context) first");
205
+ }
206
if (reLinkerInstance == null) {
207
throw new NullPointerException("ReLinkerInstance may not be null");
208
}
0 commit comments