Fixed NullPointerException when accessing outbox items

This commit is contained in:
Christian Basler 2017-05-17 12:24:13 +02:00
parent 73944b5883
commit bf070da20a
4 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ android {
}
//ext.jabitVersion = '2.0.4'
ext.jabitVersion = 'feature-extended-encoding-SNAPSHOT'
ext.jabitVersion = 'development-SNAPSHOT'
ext.supportVersion = '25.3.1'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

View File

@ -100,7 +100,7 @@ public class AndroidInventory implements Inventory {
while (c.moveToNext()) {
byte[] blob = c.getBlob(c.getColumnIndex(COLUMN_HASH));
long expires = c.getLong(c.getColumnIndex(COLUMN_EXPIRES));
result.put(new InventoryVector(blob), expires);
result.put(InventoryVector.fromHash(blob), expires);
}
}
LOG.info("Stream #" + stream + " inventory size: " + result.size());

View File

@ -272,7 +272,7 @@ public class AndroidMessageRepository extends AbstractMessageRepository {
new ByteArrayInputStream(data));
long id = c.getLong(c.getColumnIndex(COLUMN_ID));
builder.id(id);
builder.IV(new InventoryVector(iv));
builder.IV(InventoryVector.fromHash(iv));
builder.from(ctx.getAddressRepository().getAddress(c.getString(c.getColumnIndex
(COLUMN_SENDER))));
builder.to(ctx.getAddressRepository().getAddress(c.getString(c.getColumnIndex

View File

@ -9,7 +9,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.android.tools.build:gradle:2.3.2'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.14.0'
// NOTE: Do not place your application dependencies here; they belong