Skip to content
Snippets Groups Projects
Commit 9eb20164 authored by cyberta's avatar cyberta
Browse files

catch resource not found exception in LogItem

parent 7932f484
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.Signature;
import android.content.res.Resources.NotFoundException;
import android.os.Parcel;
import android.os.Parcelable;
......@@ -265,6 +266,11 @@ public class LogItem implements Parcelable {
return str;
}
}
} catch (NotFoundException e) {
String str = "Log resid not found: " + mRessourceId;
if (mArgs != null)
str += join("|", mArgs);
return str;
} catch (UnknownFormatConversionException e) {
if (c != null)
throw new UnknownFormatConversionException(e.getLocalizedMessage() + getString(null));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment