mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

pgamba
13.35.2008 26a24523a201ecf13aa576ac60767e67a81c5473
Fix potential NPE when computing monitor data
1 files modified
9 ■■■■■ changed files
opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 9 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java
@@ -1572,10 +1572,13 @@
              // this is the latency of the remote RSi regarding another RSj
              // let's update the latency of the LSes connected to RSj
              ServerHandler rsjHdr = replicationServers.get(rsid);
              for(short remotelsid : rsjHdr.getConnectedServerIds())
              if (rsjHdr != null)
              {
                Long newfmd = msg.getRSApproxFirstMissingDate(rsid);
                wrkMonitorData.setFirstMissingDate(remotelsid, newfmd);
                for(short remotelsid : rsjHdr.getConnectedServerIds())
                {
                  Long newfmd = msg.getRSApproxFirstMissingDate(rsid);
                  wrkMonitorData.setFirstMissingDate(remotelsid, newfmd);
                }
              }
            }
          }