XPS 15 turns off when adapter is plugged in

I have a new XPS 15 and suddenly it started having problems. The laptop turns off whenever I plug in the adapter. It worked fine with the battery, but as expected, it didn't last long since the battery drained out. The light on the power adapter is always on so I can tell it's fine. What do you think is the problem? Is this something I can fix on my own or I should just call tech support?
