From: <gk...@us...> - 2012-11-08 09:48:25
|
Revision: 25276 http://gmod.svn.sourceforge.net/gmod/?rev=25276&view=rev Author: gk_fan Date: 2012-11-08 09:48:15 +0000 (Thu, 08 Nov 2012) Log Message: ----------- Fixed casting issue for ChadoProgram arrays that was causing a ClassCastException. Modified Paths: -------------- apollo/trunk/src/java/apollo/dataadapter/chado/jdbc/FlybaseChadoInstance.java Modified: apollo/trunk/src/java/apollo/dataadapter/chado/jdbc/FlybaseChadoInstance.java =================================================================== --- apollo/trunk/src/java/apollo/dataadapter/chado/jdbc/FlybaseChadoInstance.java 2012-10-12 20:48:34 UTC (rev 25275) +++ apollo/trunk/src/java/apollo/dataadapter/chado/jdbc/FlybaseChadoInstance.java 2012-11-08 09:48:15 UTC (rev 25276) @@ -106,7 +106,7 @@ return null; } else { - ChadoProgram [] cdsChadoPrograms = (ChadoProgram [])cdsChadoPrgs.toArray(); + ChadoProgram [] cdsChadoPrograms = (ChadoProgram [])cdsChadoPrgs.toArray(new ChadoProgram[0]); analysisWhereStr.append("AND cds.feature_id = af.feature_id "); // analysis table is cached; no need to add it to the query This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |