Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.5.0, 2.1.0, 2.1.5, 2.1.2, 2.0.0, 2.0.2
-
Security Level: Public
-
None
Description
(Apologies, not sure if we're using CBL for this kind of issue - please move as needed)
Basic repro:
public class MainActivity extends AppCompatActivity { |
|
Database db;
|
Replicator r;
|
URI u;
|
|
@Override |
protected void onCreate (Bundle savedInstanceState) { |
super.onCreate(savedInstanceState); |
setContentView(R.layout.activity_main);
|
|
DatabaseConfiguration dbc = new DatabaseConfiguration(this); |
try { |
db = new Database("test", dbc); |
} catch (CouchbaseLiteException e) { |
e.printStackTrace();
|
}
|
|
try { |
u = new URI("ws://localhost"); |
} catch (URISyntaxException e) { |
e.printStackTrace();
|
}
|
ReplicatorConfiguration rpc = new ReplicatorConfiguration(db, new URLEndpoint(u)); |
|
r = new Replicator(rpc); |
r.getStatus();
|
}
|
}
|