mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2026-10-04 13:37:00 +00:00
fixed #45
This commit is contained in:
@@ -72,6 +72,10 @@ public class TrytesConverter {
|
||||
*/
|
||||
public static String toString(String inputTrytes) {
|
||||
|
||||
// If input length is odd, return null
|
||||
if (inputTrytes.length() % 2 != 0)
|
||||
return null;
|
||||
|
||||
StringBuilder string = new StringBuilder();
|
||||
|
||||
for (int i = 0; i < inputTrytes.length(); i += 2) {
|
||||
|
||||
Reference in New Issue
Block a user