Chances are what's going on is that you are probably getting a reference to a layout element that exists in your portrait (/layouts/activity*.xml) layout but doesn't exist in your landscape layout (/layouts-land/activity*.xml).
For example,
Button button = (Button) findviewbyid(R.id.myButton);
Might work if you're in portrait because you have a <Button />
element in it. But your landscape layout does not have the same element.
This leads to a NullPointerException
which is the exception you got. It occurs when you try to access an object that has not been initialized. So look out for where you are doing that.