Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
fixed #45
Browse files Browse the repository at this point in the history
  • Loading branch information
pinpong committed Oct 23, 2017
1 parent 4c9e1ee commit d14c793
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/jota/utils/TrytesConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public static String toTrytes(String inputString) {
*/
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) {
Expand Down

0 comments on commit d14c793

Please sign in to comment.