Germany wanted to what they do and so did Russia. When Germany was trying to conquer Poland, Russia felt threatened and took one half. This made a major problem with many German officials.
Both Poland and Germany had non-aggression pacts with Soviet. Stalin broke it with Poland in Sept 1939 when the Red Army joined the Wehrmacht in occupying Poland according to the Molotov-Ribbentrop...