Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r4098 - trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store

Subject: perfsonar development work

List archive

perfsonar: r4098 - trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r4098 - trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store
  • Date: Wed, 2 Jul 2008 08:12:04 -0400

Author: roman
Date: 2008-07-02 08:12:03 -0400 (Wed, 02 Jul 2008)
New Revision: 4098

Modified:

trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store/L2PathStatusStoreRequestProcess.java

trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store/StoreRequestProcess.java
Log:

Data element can be empty in process method and this will not generate
NullPointerException.



Modified:
trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store/L2PathStatusStoreRequestProcess.java
===================================================================
---
trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store/L2PathStatusStoreRequestProcess.java
2008-07-02 11:50:15 UTC (rev 4097)
+++
trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store/L2PathStatusStoreRequestProcess.java
2008-07-02 12:12:03 UTC (rev 4098)
@@ -27,7 +27,7 @@

public L2PathStatusStoreRequestProcess() throws PerfSONARException {

- super();
+ super();

}


Modified:
trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store/StoreRequestProcess.java
===================================================================
---
trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store/StoreRequestProcess.java
2008-07-02 11:50:15 UTC (rev 4097)
+++
trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store/StoreRequestProcess.java
2008-07-02 12:12:03 UTC (rev 4098)
@@ -70,6 +70,11 @@
throws Exception {

Vector datumVector = data.getDatum();
+ if (datumVector == null) {
+ logger.debug("StoreRequestProcess.process: "
+ + "Data element with id='" + data.getId() + "' is
empty.");
+ return;
+ }

for (int i = 0; i < datumVector.size(); i++) {




  • perfsonar: r4098 - trunk/geant2-java-sql-ma/src/main/java/org/perfsonar/service/measurementArchive/sqlType/store, svnlog, 07/02/2008

Archive powered by MHonArc 2.6.16.

Top of Page