b575d0b90592d683ff70e01bfbcb48beb1b2a552 tdreszer Fri Jun 3 17:25:51 2011 -0700 Removed invalid assert. diff --git src/hg/lib/mdb.c src/hg/lib/mdb.c index 21896ad..10d9724 100644 --- src/hg/lib/mdb.c +++ src/hg/lib/mdb.c @@ -2962,32 +2962,31 @@ if ((foundId && warn > 0) || warn > 1) { if (updateObj) printf(" %s %-60s needs updating to mdb.\n",experimentId,obj->obj); else printf(" %s %s\n",experimentId,obj->obj); // missing } } // This object needs to be updated. if (updateObj) { mdbObjSetVarInt(obj,MDB_VAR_ENCODE_EXP_ID,expId); struct mdbObj *newObj = mdbObjCreate(obj->obj,MDB_VAR_ENCODE_EXP_ID, experimentId); - assert(exp != NULL); - if (exp->accession != NULL && updateAccession) + if (updateAccession && exp != NULL && exp->accession != NULL) mdbObjSetVar(newObj,MDB_VAR_DCC_ACCESSION,exp->accession); slAddHead(&mdbUpdateObjs,newObj); } slAddHead(&mdbProcessedObs,obj); } // Done with one experiment encodeExpFree(&exp); if (!foundId && errors > 0 && warn > 0) printf(" %s all %d objects are missing an %s.\n",experimentId,objsInExp,MDB_VAR_ENCODE_EXP_ID); } // Done with one composite if (expCount > 0) {