Problem with Flurry

Hi, I have a problem with setting up Flurry in my Android game. I did everything what is described here but my console says that in functions other than Start() (for example in Update() or OnApplicationQuit()) there is an error: “NullReferenceException: Object reference not set to an instance of an object”. This is my code:

using UnityEngine;

using System.Collections;

public class GameController : MonoSingleton {

//private variables
private string language;
private FlurryAgent flurry;

//public variables
public RigidDonut donut;
public Pursuit helicopter;
public bool chocolateRain = false;

// Use this for initialization
void Start () {
	LoadLanguage();
	flurry = new FlurryAgent ();
	flurry.onStartSession ("my ID");
	flurry.logEvent ("Application started");
}

// Update is called once per frame
void Update () {
		flurry.onPageView ();
}

public void LoadLanguage() {
	string language;
	if (PlayerPrefs.HasKey("Language")) {
		language = PlayerPrefs.GetString("Language");
	}
	else {
		language = "English";
		PlayerPrefs.SetString("Language", language);
		PlayerPrefs.Save();
	}
	Localization.loadLanguage(language);
}

public void OnApplicationQuit() {
	flurry.onEndSession ();
}

}

If anyone could help me I’d be grateful

I used http://forum.unity3d.com/threads/flurryagent-wrapper-for-unity-3-2.87959/ side to set up flurry in my android game. I got Exception: JNI: Init’d AndroidJavaClass with null ptr!
error. This is my code


using UnityEngine;
using System.Collections;

public class main : MonoBehaviour {

private string FLURRY_API = "PPJNXV3ZZ3XV6NP4ZJBB";

// Use this for initialization
void Start () {
	FlurryAgent.Instance.onStartSession(FLURRY_API);
}

// Update is called once per frame
void Update () {

	if(Time.frameCount%300==0)
		FlurryAgent.Instance.logEvent("test update");
}

void OnDestroy(){
	FlurryAgent.Instance.onEndSession();
}

}

Plese help me…