Donut time

Why on earth is this standard behavior?

File[] files = dir.listFiles(filter);
for (File file : files) {

Throws a null pointer if dir has no files.

Wtf. Why not an array of length 0? This code won’t ever throw one:

TestObject[] candidates = root.find(atChild(“name”,name));
for (TestObject candidate : candidates) {

When RFT behaves better than Java….

So I have to bring in Broken Build Donuts tomorrow >.<


Well that’s weird. I can’t reproduce locally, even by deleting the entire folder. Curiouser and curiouser…

(The nightly test forgot to install the application under test. Hence, no folders at all.)

This entry was posted in programming and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s