From 3c799d68dab47679e6fcc3eb0865cf7ddcb0aaa6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 24 Jun 2013 12:57:36 +0400 Subject: [PATCH] prevent crash if apirequest is invoked when app is unconfigured --- src/org/fox/ttrss/ApiRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/fox/ttrss/ApiRequest.java b/src/org/fox/ttrss/ApiRequest.java index 5d2766d2..ac4b681b 100644 --- a/src/org/fox/ttrss/ApiRequest.java +++ b/src/org/fox/ttrss/ApiRequest.java @@ -59,7 +59,7 @@ public class ApiRequest extends AsyncTask, 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;