package com.tencent.mm.opensdk.utils; import android.os.Bundle; /* loaded from: classes.dex */ public final class a { public static int a(Bundle bundle, String str) { if (bundle == null) { return -1; } try { return bundle.getInt(str, -1); } catch (Exception e) { Log.e("MicroMsg.IntentUtil", "getIntExtra exception:" + e.getMessage()); return -1; } } public static String b(Bundle bundle, String str) { if (bundle == null) { return null; } try { return bundle.getString(str); } catch (Exception e) { Log.e("MicroMsg.IntentUtil", "getStringExtra exception:" + e.getMessage()); return null; } } }