I agree that that’s the law, but why? Why should we make throwing things that can’t harm someone assault? If you throw a pb & j at someone who’s allergic to peanuts, or throw a dense sandwich really hard at someone standing on a high precipice, that’s a different story (and those are each covered by other crimes), but no harm was intended or caused by this. Why should it be illegal?
Edit: I can get behind littering as a charge here, but that looks very different on a background report…