Donut time

Why on earth is this standard behavior?

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

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) {
//snip
}

When RFT behaves better than Java….

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

Update:

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.)

Advertisements
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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s