> There is a division in the code, and dividing by zero (items) gives bad results, as it should :)

alrighty then....
 
 i put in check for / 0  - it returns an empty container - which is better than the alt.
 
if (0 == rows || 0 == cols)
    return base;
 
- david
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Santiago Gala
Sent: Thursday, February 08, 2001 5:24 PM
To: JetSpeed
Subject: Re: div by zero

David Sean Taylor wrote:
[EMAIL PROTECTED]" type="cite">
Just dl'ed the latest build, and Im getting this when I click on the "RSS
Sources" tab:

[Thu Feb 08 09:21:09 PST 2001] -- ERROR --
Exception: java.lang.ArithmeticException: / by zero
Stack Trace follows:
java.lang.ArithmeticException: / by zero
at
This is an old timer. I tried to fix it with no success. It is due to having a Card/Panel/Grid where all the portlets inside are not available due to not having been loaded yet or Bad URLs. There is a division in the code, and dividing by zero (items) gives bad results, as it should :)

I tried to fix it in the pane case, but did not get a working way through the code, so I stopped. When it happens recurrently is due to having bad urls, connectivity problems or problems with the psml definitions.
[EMAIL PROTECTED]" type="cite">
I looked at Ingo's recent commits and I don't think its related, the bug has
probably been there for a while.
I haven't seen any mods to the GridPortletControl in a while, so its not
obvious whats causing it.
I will try to look into it, but i haven't much time today...


-- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search: List Help?: [EMAIL PROTECTED]

Reply via email to