Fix NPE
This commit is contained in:
parent
48ed3c857b
commit
7188b38d4f
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ public class WikiIndexer {
|
||||||
if(ei != -1) {
|
if(ei != -1) {
|
||||||
String englishName = text.substring("[[en:".length() + i, ei).trim();
|
String englishName = text.substring("[[en:".length() + i, ei).trim();
|
||||||
enSearch.setString(1, englishName);
|
enSearch.setString(1, englishName);
|
||||||
ResultSet rs = enSearch.getResultSet();
|
ResultSet rs = enSearch.executeQuery();
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
clat = rs.getFloat(1);
|
clat = rs.getFloat(1);
|
||||||
clon = rs.getFloat(2);
|
clon = rs.getFloat(2);
|
||||||
|
|
Loading…
Reference in a new issue