Java tutorial
//package com.java2s; //License from project: Open Source License import android.util.Log; public class Main { public static void LogIfNull(String tag, Object obj, String objectName) { if (obj == null) { Log.d(tag, "NullObject::" + objectName); } } }