Incumbent President Lyndon B. Johnson withdrew from the Democratic race due to anti-Vietnam War sentiment across the country , and Robert Kennedy ( brother to the former President John F. Kennedy ) was one of the frontrunners until his assassination in June , 1968 , which cleared the way for Humphrey to win his party 's nomination .