1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

HTTP Server: Fix NullPointerException when restarting HTTP_Server and going directly to search suggest [#537]

This commit is contained in:
gnosygnu
2019-08-11 08:00:49 -04:00
parent 6449368800
commit 2ef6211e87
2 changed files with 9 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ public class Bridge_cmd_itm__srch_suggest implements Bridge_cmd_itm {
byte[] cbk_func = data.Get_as_bry("cbk");
// build vars for search
Xowe_wiki wiki = (Xowe_wiki)app.Wiki_mgri().Get_by_or_null(wiki_bry);
Xowe_wiki wiki = (Xowe_wiki)app.Wiki_mgri().Get_by_or_make_init_y(wiki_bry); // handle (a) HTTP_server stoped and (b) text entered directly into search-suggest; wiki not yet instantiated
Srch_rslt_cbk__js cbk = new Srch_rslt_cbk__js(cbk_func, search_bry);
// do search and return result