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-94f89814c4dfmaster
parent
337c4ffb6d
commit
e0c1bebdd3
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue