Post
Topic
Board CPU/GPU Bitcoin mining hardware
Re: DiabloMiner GPU Miner (Long Poll, BFI_INT, async networking, multipool)
by
DiabloD3
on 22/07/2011, 18:57:01 UTC
Exception in thread "DiabloMiner GetWorkAsync for 127.0.0.1" java.lang.NullPointerException
   at com.diablominer.DiabloMiner.DiabloMiner$NetworkState.doJSONRPC(DiabloMiner.java:684)
There is a missing null check on xRollNTime at line 681. Just make it look like the following:

if(xRollNTime != null && !"n".equalsIgnoreCase(xRollNTime)) {

Yeah, it seems theres a bug in iongchun's code to add expire time support and I didn't catch it because I don't regularly use any pools that don't support it.

For those wondering about Java, "string literal".equals(null) returns false instead of NullException.

I'll roll this fix out in a bit.