File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
xrpl4j-core/src/main/java/org/xrpl/xrpl4j/codec/binary/types Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public abstract class SerializedType<T extends SerializedType<T>> {
4949 .put ("Currency" , () -> new CurrencyType ())
5050 .put ("Hash128" , () -> new Hash128Type ())
5151 .put ("Hash160" , () -> new Hash160Type ())
52- .put ("UInt192 " , () -> new UInt192Type ())
52+ .put ("Hash192 " , () -> new UInt192Type ())
5353 .put ("Hash256" , () -> new Hash256Type ())
5454 .put ("PathSet" , () -> new PathSetType ())
5555 .put ("STArray" , () -> new STArrayType ())
@@ -76,7 +76,11 @@ public SerializedType(UnsignedByteArray bytes) {
7676 * @return A {@link SerializedType} for the supplied {@code name}.
7777 */
7878 public static SerializedType <?> getTypeByName (String name ) {
79- return typeMap .get (name ).get ();
79+ try {
80+ return typeMap .get (name ).get ();
81+ } catch (NullPointerException e ) {
82+ throw e ;
83+ }
8084 }
8185
8286 /**
You can’t perform that action at this time.
0 commit comments