[SPIGOT-4899] Checking a Inventory's title (on a horse's inventory) yeilds IllegalStateException, "Title Not Set" Created: 09/May/19  Updated: 10/May/19  Resolved: 10/May/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Shane Martin Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.14

Version: 09.05 11:24:50 [Server] Server thread/INFO This server is running CraftBukkit version git-Spigot-1eece4f-6ceffb0 (MC: 1.14) (Implementing API version 1.14-R0.1-SNAPSHOT
Guidelines Read: Yes

 Description   

 

Given The Following Code:

https://hatebin.com/uhrefqhqei

 

I am trying to look for a inventory with a specific title, for the sake of this bug the title does not matter.    But the above code works for most inventories except for horses.    Horse inventory view's appear to NOT have a title set, and trying to check the title of this inventory throws an IllegalStateException -> Title not set

 

I have tried using InventoryView.getTitle() != null and !.isEmpty() but get the illegal state exception because the title isn't set.    Request a way to check if the inventory has a title set without throwing the exception.    Perhaps InventoryView.hasTitle() ?

 



 Comments   
Comment by md_5 [ 10/May/19 ]

Reminder to please follow the instructions.

You said you read them

Generated at Sat Dec 13 15:22:26 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.