In my CBL custom event handler I have the following code:
// counter working with long values
String counterName = "CouponAtomicValue";
long david = Backendless.Counters.getAndIncrement(counterName);
but I get a Null Pointer Exception when I run the code in CodeRunner (latest downloaded) but it works when deployed.