If the dog is old, it could be dementia. I have a friend who has a 15 year old Poodle, and he has severe dementia. He does not remember where to go to the bathroom and he also bumps into the walls, and goes and stands in the corner sometimes. He also has other strange behavior, like forgetting people and things like that. But, if your dog is young, then this probably isn't it. Just a thought...