Fix an NPE in recent code
Change-Id: I5c76edff5c3c250167d425a737b09b10e25f9f84
This commit is contained in:
parent
01f6a61e51
commit
acafc073b9
1 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,9 @@ public class Diff extends Dicttool.Command {
|
||||||
System.out.println("Bigram removed: " + word + " " + attribute0.mWord + " "
|
System.out.println("Bigram removed: " + word + " " + attribute0.mWord + " "
|
||||||
+ attribute0.mFrequency);
|
+ attribute0.mFrequency);
|
||||||
}
|
}
|
||||||
} else if (null != list0) {
|
return;
|
||||||
|
}
|
||||||
|
if (null != list0) {
|
||||||
for (final WeightedString attribute0 : list0) {
|
for (final WeightedString attribute0 : list0) {
|
||||||
// The following tests with #equals(). The WeightedString#equals() method returns
|
// The following tests with #equals(). The WeightedString#equals() method returns
|
||||||
// true if both the string and the frequency are the same.
|
// true if both the string and the frequency are the same.
|
||||||
|
|
Loading…
Reference in a new issue