From: kongsen.tian at tokuii.com (kstian) Date: Mon, 03 Oct 2005 09:38:25 +0800 Subject: [Pljava-dev] NPE using existing TriggerData ResultSet Message-ID: <43408B91.1080509@tokuii.com> Hi, I was trying to use the existing postgresql connection from TriggerData in Trigger function trying to write some data back to postgresql (in another table) by using: public static void triggerFunction(TriggerData td) { . ResultSet _rsnew = td.getNew(); . . . function(_rsnew.getStatement().getConnection()); //<========= (NPE here) . . } private static function (java.sql.Connection conn) { . . . } However, I am getting NPE at statement "_renew.getStatement().getConnection()". Is this a bug? Do you have another solution to reuse existing postgresql connection? Thanks a lot for helping. Regards, Kong