OK, I see that this has already been checked in - thanks.

On Aug 3, 2009, at 8:30 AM, Greg Brown wrote:

Index: src/org/apache/pivot/wtk/TabPane.java
===================================================================
--- src/org/apache/pivot/wtk/TabPane.java       (revision 800243)
+++ src/org/apache/pivot/wtk/TabPane.java       (working copy)
@@ -380,7 +380,7 @@

   public static boolean isCloseable(Component component) {
       Attributes attributes = (Attributes)component.getAttributes();
-        return (attributes == null) ? null : attributes.closeable;
+        return (attributes == null) ? true : attributes.closeable;
// verify what value to set in case of null ...
   }

I have applied this patch. But how did the version that returns null even compile? I assume it has something to do with auto-boxing and would fail at runtime, but that's weird.



Reply via email to