Open tab for doesn't return a tab

set theURL to "https://devontechnologies.com/"
set theTab to open tab for URL theURL

After executing these lines theTab is a “missing value”. I can’t access any attributes that are supposed to be on a tab, too.

Did I read the documentation incorrectly that open tab for should return a tab or do I do something wrong, or is this a bug?

This seems to be a bug, thanks for the report.

As a workaround you maybe could use current tab to get the properties

tell application id "DNtp"
	try
		set theURL to "https://discourse.devontechnologies.com"
		
		set theTabs_Count to (count (tabs of think window 1))
		open tab for URL theURL in think window 1
		set current tab of think window 1 to tab (theTabs_Count + 1) of think window 1
		set theProperties to properties of current tab of think window 1
		
	on error error_message number error_number
		if the error_number is not -128 then display alert "DEVONthink" message error_message as warning
	end try
end tell