Commit of MK branch rev. 647 (minor change to AbstractStatistics/StringSelection)
This commit is contained in:
@@ -806,10 +806,10 @@ public abstract class AbstractStatistics implements InterfaceTextListener, Inter
|
|||||||
Iterator<String> hIter = headers.iterator();
|
Iterator<String> hIter = headers.iterator();
|
||||||
Iterator<String> mIter = (metaInfo!=null) ? metaInfo.iterator() : null;
|
Iterator<String> mIter = (metaInfo!=null) ? metaInfo.iterator() : null;
|
||||||
if (!lastIsShowFull) while (hIter.hasNext()) {
|
if (!lastIsShowFull) while (hIter.hasNext()) {
|
||||||
if (mIter!=null) mIter.next();
|
if (mIter!=null && mIter.hasNext()) mIter.next();
|
||||||
if (!isRequestedAdditionalField(hIter.next())) {
|
if (!isRequestedAdditionalField(hIter.next())) {
|
||||||
hIter.remove();
|
hIter.remove();
|
||||||
if (mIter!=null) mIter.remove();
|
if (mIter!=null && mIter.hasNext()) mIter.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return headers;
|
return headers;
|
||||||
|
@@ -137,7 +137,11 @@ public class StringSelection implements Serializable {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean isSelected(int i) {
|
public boolean isSelected(int i) {
|
||||||
return selStates[i];
|
try {
|
||||||
|
return selStates[i];
|
||||||
|
} catch(ArrayIndexOutOfBoundsException e) {
|
||||||
|
throw new ArrayIndexOutOfBoundsException(e.getMessage()+" - inconsistent implementation of InterfaceAdditionalPopulationInformer?");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user