I am trying to capture images using webcam but I came across a null exception:
http://i89.photobucket.com/albums/k218/lololovelola/frame1null2_zps54bd24ce.png
Frame1 as shown during the debugging has null value. However, the fact that I put an error handler that if(frame1 != null) then it should not enter the condition because Frame1 is null.
What makes it even more odd is that frame2 accepts data from frame1 which in the previous image shows that it has null value and do not hold an image capture. Just to add, frame4 also accept the same image from frame1.
http://i89.photobucket.com/albums/k218/lololovelola/frame2null_zps2198fbb0.png
Any help from above will be very much appreciated. Thank you in advance!