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