Processing + Arduino face tracking webcam port issue

I have found this code online and it seems to work on with built-in Isight webcam, but when I plug in the external webcam, Processing can't seem to recognize the port and I get NullPointerException error.

Did you have an Arduino question?