I am getting the following error while trying to send a video file from PC to mobile using a bluetooth dongle. The program works fine when run individually but when i use it with other classes,i get te folowing exception.
java.lang.NullPointerException
at de.avetana.bluetooth.obex.OperationImpl$OBEXPutOutputStream.write(OperationImpl.java:213)
at inter.NewConvert.<init>(INT.java:1721)
at inter.jmfcam05v.startCapture(INT.java:1582)
at inter.jmfcam05v.<init>(INT.java:1447)
at inter.GCTask.run(INT.java:1787)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
The flow of my program is.. Detect intrusion-->Send SMS--->Capture video--->Convert to mp4--->TRANSFER .The problem is with transfer.rest all works fine.