[FNR] LiveGridView / by Zero (ArithmeticException)
Hi,
I just encountered a bug when loading a LiveGridView store for the first time:
in LiveGridView.java@242:
PHP Code:
if (totalCount != loader.getTotalCount()) { // totalCount = 0, loader.getTotalCount() = 11
totalCount = loader.getTotalCount(); // = 11
int height = totalCount * getCalculatedRowHeight(); // 11 * 19 = 209
// 1000000 as browser maxheight hack
int count = height / 1000000; // 209 / 1000000 => truncated to zero
int h = height / count; // 11 / 0 => BOOM
I just switched from 2.1.3 to 2.2.0 beta and encoutered this error for the first time.
Is there a quick fix/workaround for this problem?
regards