I am fetching the value using query
SELECT t.revision_no
FROM (
SELECT MAX( CONVERT( revision_no, signed INT ) ) AS revision_no
FROM atps_dc
WHERE DATE = '"+date+"'
GROUP BY CONVERT( revision_no, signed INT ))
INNER JOIN atps_dc t
ON t.revision_no = r.revision_no AND t.date = '"+date+"'";
and trying to set this value using this
bA.setRev_no(rs2.getString("revision_no"));
but the compiler is giving the null pointer exception. Please help me, how can I resolve it.
Thanks in advance.