Is this racist thinking?

To my way of thinking, the following statement is racist and discriminatory. But maybe my reasoning is flawed, so I’m asking…what do you guys think? Do you agree with me that the following thinking is very wrong.

It is not ok for white people to be poor…there must be something wrong like lack of education, drug or alcohol abuse, mental illness, etc with some one who is white and poor.