Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Jun 14, 2017
1 parent a2ffb59 commit 777e2c9
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -147,10 +147,11 @@ private Map<String, Map<String, Object>> getContexts() {

private static String[] getProGuardUuids(Context ctx) {
try {
ApplicationInfo ai = ctx.getPackageManager().getApplicationInfo(ctx.getPackageName(), PackageManager.GET_META_DATA);
PackageManager pm = ctx.getPackageManager();
ApplicationInfo ai = pm.getApplicationInfo(ctx.getPackageName(), PackageManager.GET_META_DATA);
Bundle bundle = ai.metaData;
String uuid = bundle.getString("io.sentry.ProguardUuids");
return uuid.split("|");
return uuid.split("\\|");
} catch (PackageManager.NameNotFoundException e) {
Log.e(TAG, "Failed to load meta-data, NameNotFound: " + e.getMessage());
} catch (NullPointerException e) {
Expand Down

0 comments on commit 777e2c9

Please sign in to comment.