public static String getThreadName(AwfulActivity context, int threadId){
return getName(context, threadId, AwfulThread.CONTENT_URI, AwfulProvider.ThreadProjection,
AwfulThread.TITLE, "Thread #");
}
private static String getName(AwfulActivity context, int id, Uri contentUri, String[] projection,
<BUG>String columnName, String defaultPrefix) {
Cursor cursor = null;
try {
CursorLoader cl = new CursorLoader(context,
ContentUris.withAppendedId(contentUri, id),</BUG>
projection,

public static String getThreadName(AwfulActivity context, int threadId){
return getName(context, threadId, AwfulThread.CONTENT_URI, AwfulProvider.ThreadProjection,
AwfulThread.TITLE, "Thread #");
}
private static String getName(AwfulActivity context, int id, Uri contentUri, String[] projection,
String columnName, String defaultPrefix) {
String result;
ContentResolver contentResolver = context.getContentResolver();
Cursor cursor = contentResolver.query(ContentUris.withAppendedId(contentUri, id),
projection,
