Your cast should be fine, although of course you will get a null pointer exception if you ever try to actually dereference casted... -Craig
On 5/16/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote: > Are you allowed to cast an object with a value of null, or does this > throw an exception? > > For example, would the following statement throw an exception if the > needToCast reference was null? > > IRendererFactoryTool casted = (IRendererFactoryTool) needToCast; > > Thanks, > > The Sunburned Surveyor > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel