Author: ulhume
Date: 2008-08-31 12:47:49 +0200 (Sun, 31 Aug 2008)
New Revision: 1667
Modified:
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/propertyEditor/PropertiesTableModel.java
Log:
Better handling of proprerty visibility
Modified:
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/propertyEditor/PropertiesTableModel.java
===================================================================
---
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/propertyEditor/PropertiesTableModel.java
2008-08-31 10:46:54 UTC (rev 1666)
+++
software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/sources/com/kysoh/tuxdroid/gadget/framework/propertyEditor/PropertiesTableModel.java
2008-08-31 10:47:49 UTC (rev 1667)
@@ -41,9 +41,11 @@
this.parameters = parameters;
this.values = values;
this.visibleParameters = parameters;
- for (int i = visibleParameters.size() - 1; i >= 0; i--) {
- if (!visibleParameters.get(i).isVisible()) {
- visibleParameters.remove(i);
+ if (visibleParameters != null) {
+ for (int i = visibleParameters.size() - 1; i >= 0; i--)
{
+ if (!visibleParameters.get(i).isVisible()) {
+ visibleParameters.remove(i);
+ }
}
}
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn