Using Energia, how do I get around disableWatchDog() locking up my program?

Below is a short code chunk. The code locks up on the 'Serial.Begin(9600);' line. Can anybody tell me why? Also, can you tell me how to get around it?

void setup()
{
disableWatchDog();
Wire.setModule(0);
Serial.begin(9600);
while(Serial.available());
}