Commit of MK branch rev. 647 (minor change to AbstractStatistics/StringSelection)

This commit is contained in:
Marcel Kronfeld 2010-09-17 14:02:18 +00:00
parent 33dc1be0bf
commit 59ce3e693b
2 changed files with 7 additions and 3 deletions

View File

@ -806,10 +806,10 @@ public abstract class AbstractStatistics implements InterfaceTextListener, Inter
Iterator<String> hIter = headers.iterator();
Iterator<String> mIter = (metaInfo!=null) ? metaInfo.iterator() : null;
if (!lastIsShowFull) while (hIter.hasNext()) {
if (mIter!=null) mIter.next();
if (mIter!=null && mIter.hasNext()) mIter.next();
if (!isRequestedAdditionalField(hIter.next())) {
hIter.remove();
if (mIter!=null) mIter.remove();
if (mIter!=null && mIter.hasNext()) mIter.remove();
}
}
return headers;

View File

@ -137,7 +137,11 @@ public class StringSelection implements Serializable {
* @return
*/
public boolean isSelected(int i) {
return selStates[i];
try {
return selStates[i];
} catch(ArrayIndexOutOfBoundsException e) {
throw new ArrayIndexOutOfBoundsException(e.getMessage()+" - inconsistent implementation of InterfaceAdditionalPopulationInformer?");
}
}
/**