I sent this too early what I wanted to write was:
If I understood the semantics correctly one should only access the texture
parameters (and further down the texture) if the object we are trying to
paste is in fact an object that returns true in canSetTexture so I added an
enclosing if.
A few lines below I added a similar check for the copying of the materials.
To reproduce bug: Create a Cube and a Polygon then select these two objects copy then and then try to paste them. The paste will fail and result in a null pointer exception in the pasteClipboard function (in ArtOfIllusion.java in line 662 in version 2.7.2) because it tries to access the curves Texture parameters which are null because curves are not supposed to have a texture.
If I understood...