From 2d3b29a8f394e109cea9e6d92e50b19e27293b5f Mon Sep 17 00:00:00 2001 From: ghubstan <36207203+ghubstan@users.noreply.github.com> Date: Thu, 27 Aug 2020 16:34:52 -0300 Subject: [PATCH] Upgrade JFoenix to v9.0.10 This commit & PR upgrades JFoenix from v9.0.6 to v9.0.10, to avoid an NPE thrown when registering a DisputeAgent in an arbitartor (regtest) desktop's account view. The JFoenix com.jfoenix.adapters.ReflectionHelper class has a getField method that silently swallows a Throwable and returns null. After clicking ALT-D or ALT-N in the an arbitrator's desktop -> accounts view (to register dispute agents) a private field cannot be accessed via reflection, and bisq.desktop.components.JFXTextFieldSkinBisqStyle#updateTextPos() throws an NPE. The cause of the NPE is due to a failure to create the textNode value in the JFXTextFieldSkinBisqStyle constructor: textNode = ReflectionHelper.getFieldContent(TextFieldSkin.class, this, "textNode"); If this happens,the UI becomes unusable -- many views are blank. --- build.gradle | 2 +- gradle/witness/gradle-witness.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index ab86fc152aa..5c238c97011 100644 --- a/build.gradle +++ b/build.gradle @@ -51,7 +51,7 @@ configure(subprojects) { javaxAnnotationVersion = '1.2' jcsvVersion = '1.4.0' jetbrainsAnnotationsVersion = '13.0' - jfoenixVersion = '9.0.6' + jfoenixVersion = '9.0.10' joptVersion = '5.0.4' jsonsimpleVersion = '1.1.1' junitVersion = '4.12' diff --git a/gradle/witness/gradle-witness.gradle b/gradle/witness/gradle-witness.gradle index 08f74f9f510..856355e4730 100644 --- a/gradle/witness/gradle-witness.gradle +++ b/gradle/witness/gradle-witness.gradle @@ -42,7 +42,7 @@ dependencyVerification { 'com.google.zxing:core:11aae8fd974ab25faa8208be50468eb12349cd239e93e7c797377fa13e381729', 'com.google.zxing:javase:0ec23e2ec12664ddd6347c8920ad647bb3b9da290f897a88516014b56cc77eb9', 'com.googlecode.jcsv:jcsv:73ca7d715e90c8d2c2635cc284543b038245a34f70790660ed590e157b8714a2', - 'com.jfoenix:jfoenix:4739e37a05e67c3bc9d5b391a1b93717b5a48fa872992616b0964d3f827f8fe6', + 'com.jfoenix:jfoenix:8060235fec5eb49617ec8d81d379e8c945f6cc722d0645e97190045100de2084', 'com.lambdaworks:scrypt:9a82d218099fb14c10c0e86e7eefeebd8c104de920acdc47b8b4b7a686fb73b4', 'com.madgag.spongycastle:core:8d6240b974b0aca4d3da9c7dd44d42339d8a374358aca5fc98e50a995764511f', 'com.nativelibs4java:bridj:101bcd9b6637e6bc16e56deb3daefba62b1f5e8e9e37e1b3e56e3b5860d659cf',