Fixed null pointer in favorites db helerp

This commit is contained in:
Denis 2014-11-07 16:34:05 +02:00
parent a1b10b5aec
commit 525703b4be

View file

@ -191,7 +191,7 @@ public class FavouritesDbHelper {
} }
} }
if (index.length() > 0 || emoticons){ if (index.length() > 0 || emoticons){
AlertDialog.Builder builder = new AlertDialog.Builder(context.getMapActivity()); AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setTitle(R.string.fav_point_dublicate); builder.setTitle(R.string.fav_point_dublicate);
if (emoticons){ if (emoticons){
builder.setMessage(context.getString(R.string.fav_point_emoticons_message, name)); builder.setMessage(context.getString(R.string.fav_point_emoticons_message, name));