From: Mark G. <mg...@us...> - 2003-07-01 23:13:57
|
Update of /cvsroot/gmod/apollo/src/java/apollo/datamodel In directory sc8-pr-cvs1:/tmp/cvs-serv27858/src/java/apollo/datamodel Modified Files: Transcript.java Log Message: Fixed bug sima found where gene CG12548 was not saving. The problem was an overhanging transposon. Transcript.get_cDNA was being called at save time. Since it didnt haveWholeSequence but cDNA was non null it returned cDNA.getResidues(). But this cDNA had null residues causing a null pointer exception. Now it checks if getRes is null, and calls super.get_cDNA if it is. Index: Transcript.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/datamodel/Transcript.java,v retrieving revision 1.96 retrieving revision 1.97 diff -C2 -d -r1.96 -r1.97 *** Transcript.java 30 Jun 2003 21:13:04 -0000 1.96 --- Transcript.java 1 Jul 2003 23:13:54 -0000 1.97 *************** *** 150,154 **** from the ref seq. */ public String get_cDNA () { ! if (!haveWholeSequence() && cDNA !=null) return cDNA.getResidues(); // This gets sequence from the entry sequence --- 150,158 ---- from the ref seq. */ public String get_cDNA () { ! if (!haveWholeSequence() && cDNA !=null) { ! // cDNA sometimes does not have residues ! if (cDNA.getResidues() == null) return super.get_cDNA(); ! return cDNA.getResidues(); ! } // This gets sequence from the entry sequence |