Skip to content

Commit

Permalink
Merge pull request mycelium-com#60 from mycelium-com/fix-null-tx
Browse files Browse the repository at this point in the history
Fix the case when backing returns null
  • Loading branch information
Giszmo authored Jan 3, 2018
2 parents e0f7aab + 08ae88d commit b017dd2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mbw/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ android {
buildToolsVersion androidSdkBuildVersion

defaultConfig {
versionCode 2091006
versionName '2.9.10.6'
versionCode 2091007
versionName '2.9.10.7'
multiDexEnabled true

minSdkVersion 14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ private List<TransactionSummary> getTransactionSummaries() {

if (extendedInfo == null) {
Log.d(TAG, "Extended info for hash " + hash + " not found !");
continue;
}

// is it a BTC transaction or an asset transaction ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,9 @@ public NetworkParameters getNetwork() {
public static final int COLU_MAX_DUST_OUTPUT_SIZE_MAINNET = 6000;

private boolean isColuTransaction(Transaction tx) {
if (tx == null) {
return false;
}
for(int i = 0 ; i < tx.outputs.length;i++) {
TransactionOutput curOutput = tx.outputs[i];
byte[] scriptBytes = curOutput.script.getScriptBytes();
Expand Down

0 comments on commit b017dd2

Please sign in to comment.