i have an issue, its an coding problem and i know its an silly mistake but i am new to this i am not able to solve so please any one help me in solving this,
I made a query to the DB and got an object which contains 2 data, i tried retreiving it using string array the compiles without an error but while executing it gives NULL POINTER EXCEPTION. I think i did some mistake while retreiving it so please can anyone give proper code to retreive data ???
The error message is as below,
[SRC]# java UDPServer
Opening a connection to database
Starting to listen for data to persist to database.
configuration is done
Coefficent 1 is :0.032 // this 2 are retrieved data from DB
Coefficent 0 is :-23.82
Device ID is : 201001000006
Sensor type is : HUM
java.lang.NullPointerException at FetchCoeff.testing(FetchCoeff.java:51)
Exception in thread "main" java.lang.NullPointerException at UDPServer.main(UDPServer.java:72)