prevent crash if apirequest is invoked when app is unconfigured

This commit is contained in:
Andrew Dolgov 2013-06-24 12:57:36 +04:00
parent a12969f80f
commit 3c799d68da

View File

@ -59,7 +59,7 @@ public class ApiRequest extends AsyncTask<HashMap<String,String>, Integer, JsonE
m_prefs = PreferenceManager.getDefaultSharedPreferences(m_context);
m_api = m_prefs.getString("ttrss_url", null).trim();
m_api = m_prefs.getString("ttrss_url", "").trim();
m_transportDebugging = m_prefs.getBoolean("transport_debugging", false);
m_lastError = ApiError.NO_ERROR;