package me.everything.logger.dispatchers;


public abstract class AbstractReportDispatcher implements ReportDispatcher {

	private OnReportDispatchListener mOnReportDispatchListener;

	@Override
	public void setOnReportDispatchListener(OnReportDispatchListener onReportDispatchListener) {
		mOnReportDispatchListener = onReportDispatchListener;
	}
	
	protected void startDispatching() {
		mOnReportDispatchListener.onStart();
	}
	
	protected void stopDispatching() {
		mOnReportDispatchListener.onFinish();
	}

}

@@ -372,32 +372,76 @@
 Dispatching() %7B%0A
+%09%09if (mOnReportDispatchListener != null) %7B%0A%09
 %09%09mOnReportDispa
@@ -463,16 +463,20 @@
 tart();%0A
+%09%09%7D%0A
 %09%7D%0A%09%0A%09pr
@@ -504,24 +504,68 @@
 atching() %7B%0A
+%09%09if (mOnReportDispatchListener != null) %7B%0A%09
 %09%09mOnReportD
@@ -592,14 +592,18 @@
 nish();%0A
+%09%09%7D%0A
 %09%7D%0A%0A%7D%0A

Fix NPE