mirror of
https://github.com/ctripcorp/zeus.git
synced 2024-09-20 23:56:05 +08:00
fix nullpointerex
This commit is contained in:
parent
4eda898a9e
commit
62832e2042
|
@ -74,6 +74,8 @@ public class DefaultGroupCriteriaQuery implements GroupCriteriaQuery {
|
|||
@Override
|
||||
public IdVersion[] queryByIdAndMode(Long groupId, SelectionMode mode) throws Exception {
|
||||
RelGroupStatusDo d = rGroupStatusDao.findByGroup(groupId, RGroupStatusEntity.READSET_FULL);
|
||||
if (d == null) return new IdVersion[0];
|
||||
|
||||
int[] v = VersionUtils.getVersionByMode(mode, d.getOfflineVersion(), d.getOnlineVersion());
|
||||
|
||||
IdVersion[] result = new IdVersion[v.length];
|
||||
|
|
Loading…
Reference in a new issue