Draw a card when my deck and my discard piles are empty
You simply skip the draw part of the instruction.

According to Justin Gary, one of the designers of the game:


  If you have to draw a card and none are available in your deck or discard pile, you simply skip the draw.