It can certainly happen before patents are approved. A description in Robert Heinlein's book, 'Stranger in a Strange Land' was used as prior art to prevent a patent on water beds.
So the solution to patent trolling is to have more hard sci-fi that describes mechanisms of upcoming future technology in detail, thus preventing companies from patenting them?