I followed the wire from the plug connector to the panel and it appeared that it was connected properly.
Best you go over this with a fine toothed comb from one end to the other, dock system included. The color code should be white-green-black both on the boat and the dock and the colors should run true throughout both systems.
Green = ground (not intended to carry current)
White = neutral (grounded but current carrying)
Black = hot
The plug and receptacle terminals that have the right angle tab are the grounds, the wider of the 2 remaining terminals are the neutrals. Further, neutral terminals are usually identified by a silver screw as opposed to brass for the hot.
Something's crossed and it could be in the boat, dock cord (only if someone's changed or "repaired" a plug end), the dock system or a combination. I would start at the dock receptacle and test for voltage between the hot and neutral, then the hot and ground. You should read 120 volts on both tests. If you don't, resolve this before proceeding which may mean calling the marina office for liability reasons. Once resolved, plug in the cord and perform the same tests at the female end of the dock cord looking for the same results. Successful tests mean the problem is in the boat - "Guaranteed".
For the safest system you should be ground fault protected as well. Post back if you want further detail. Hope this helps.