I am working on a Twitter client. ( yawn ) Right. ( this one is going
to be way cool, though!!1! )

There is a timeline stack. It is cleared and repopulated every minute.
This pretty much works great.

Recently I added a check which toggles whether you are viewing your
friends or the public timeline. If I just set either as the default,
things work as expected.

When you use the check box, something somewhere in the check =>
reload_timeline shenanigans causes Shoes to crash not infrequently.

However, sometimes all works fine.

On a few occasions, it will repaint the timeline wrong and a message
about an unexpected nil is logged to the console. Only the file and
line reported are wrong. The only place where the reported method is
called in my app related code is in the twitter gem where it is called
on the result of URI.parse. I don't think it's possible or at least
likely that nil could happen in that specific context, so that is a
puzzling log message.. Shoes has many of those, actually..

The following paste link includes the simple check() code, for what
it's worth, and the crash log.

https://gist.github.com/15707c810952a189e2d7

-- 
Seth Thomas Rasmussen
http://greatseth.com

Reply via email to