Skip to content

Commit

Permalink
Fixing crash on empty scan
Browse files Browse the repository at this point in the history
When scanning on one of my phones I ran into this issue when hitting
back without scanning anything.  A quick null check solves the issue,
and it functions normally now.
  • Loading branch information
hank committed Feb 5, 2014
1 parent 4b335e9 commit 94c8896
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wallet/src/de/schildbach/wallet/ui/InputParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@ public abstract static class StringInputParser extends InputParser
{
private final String input;

public StringInputParser(@Nonnull final String input)
public StringInputParser(final String input)
{
this.input = input;
}

@Override
public void parse()
{
if(input == null) return;
if (input.startsWith("litecoin:"))
{
try
Expand Down

0 comments on commit 94c8896

Please sign in to comment.