I believe I have figured out what is causing the nullPointerException. It seems to occur when the users are trying to embed an image which is on their local machine into the page. When I view it on my local server, it just disregards the image. However, on our production server (which is HTTPS:) it crashes. That is the only difference in the servers. Is there anything I can do to work around this?