We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa197b3 commit 435da04Copy full SHA for 435da04
app/src/main/java/vocabletrainer/heinecke/aron/vocabletrainer/lib/Trainer/Trainer.java
@@ -151,7 +151,7 @@ public void getSolutions(TrainerInput input){
151
* @return
152
*/
153
public String getCurrentAddition() {
154
- return cVocable.getAddition();
+ return cVocable.getAddition() == null ? "" : cVocable.getAddition();
155
}
156
157
public String getLastAddition() {
@@ -163,7 +163,7 @@ public String getLastAddition() {
163
* @return true if addition != ''
164
165
public boolean hasLastAddition() {
166
- return !getLastAddition().equals("");
+ return getLastAddition() != null && !getLastAddition().equals("");
167
168
169
/**
0 commit comments