]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/gui/WaypointListModel.java
Version 9, February 2010
[GpsPrune.git] / tim / prune / gui / WaypointListModel.java
index cbab59cbfa162446e4fb5c305adf4d7c8ec55e2e..e5b41865e739a0cb08dc95382fc82eb692472ffd 100644 (file)
@@ -38,6 +38,7 @@ public class WaypointListModel extends AbstractListModel
         */
        public Object getElementAt(int inIndex)
        {
+               if (inIndex < 0 || inIndex >= getSize()) return "";
                return _waypoints.get(inIndex).getWaypointName();
        }