Changeset 3601


Ignore:
Timestamp:
Jul 25, 2007, 5:09:38 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #692: Fixes possible NullPointerException? in update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/Update.java

    r3597 r3601  
    14541454      {
    14551455        JobData job = transformation.getJob();
    1456         ExperimentData experiment = transformation.getExperiment();
    1457         if (!experiments.containsKey(job))
    1458         {
    1459           experiments.put(job, new HashSet<ExperimentData>());
    1460         }
    1461         experiments.get(job).add(experiment);
     1456        if (job != null)
     1457        {
     1458          ExperimentData experiment = transformation.getExperiment();
     1459          if (!experiments.containsKey(job))
     1460          {
     1461            experiments.put(job, new HashSet<ExperimentData>());
     1462          }
     1463          experiments.get(job).add(experiment);
     1464        }
    14621465      }
    14631466     
Note: See TracChangeset for help on using the changeset viewer.