Even this (which more semantically matches your query) works perfectly fine:
select item from Item item where item.name in :names and ( item.descr is null or item.descr in :descrs )
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Even this (which more semantically matches your query) works perfectly fine:
select item from Item item where item.name in :names and ( item.descr is null or item.descr in :descrs )