This is the meaning of dreaming of walnut: something bad will happen to disturb your personal world. This dream interpretation is accorded to Artemidorus, an ancient Greek dream interpreter, who lived around 2 AD.
If you have good personal experiences and memories associated with walnuts, then your dream interpretation depends on your positive connections with walnuts. Then the above assumption of a bad dream meaning will not apply.