The function contains this:
cooper = null;
That is the reason cooper
was set to null
. You should remove that function as well as the call to it.
The function contains this:
cooper = null;
That is the reason cooper
was set to null
. You should remove that function as well as the call to it.