Fix for NPE in the ItemSearchFlatBrowsePane which seams to occur in some installations.

git-svn-id: https://svn.libreccm.org/ccm/trunk@3082 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-01-16 18:31:12 +00:00
parent 337c4ffb6d
commit e0c1bebdd3
1 changed files with 6 additions and 1 deletions

View File

@ -286,6 +286,7 @@ public class ItemSearchFlatBrowsePane extends SimpleContainer {
return ret;
}
@Override
public Object getElementAt(final int columnIndex) {
switch (columnIndex) {
case 0:
@ -297,7 +298,11 @@ public class ItemSearchFlatBrowsePane extends SimpleContainer {
case 1:
return getItemPath(currentItem);
case 2:
if (currentItem.getContentType() == null) {
return "";
} else {
return currentItem.getContentType().getName();
}
default:
return null;
}