When one embed field value is set null it results in an errror
See original GitHub issueGeneral Troubleshooting
- I have checked for similar issues on the Issue-tracker.
- I have updated to the latest JDA version
- I have checked the branches or the maintainers’ PRs for upcoming bug fixes.
Expected Behaviour
Not to give an error as both values are marked as Nullable.
This can be shown here
Code Example for Reproduction Steps
EmbedBuilder builder = new EmbedBuilder()
.addField("one", null)
.build();
Code for JDABuilder or DefaultShardManagerBuilder used
Someone else code
Exception or Error
java.lang.IlligalArgumentException: Both name and value must be set!
Issue Analytics
- State:
- Created a year ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
"MessageEmbed field values may not be empty" problem in ...
I'm trying to make a help command but i want to try to make sure embeds and stuff work before doing the command,...
Read more >Embed values may not be empty · Issue #4010 - GitHub
In the end you are trying to enter an invalid field, which the library chooses to reject before the API does so after...
Read more >Handling Null and Other Special Values - Tableau Help
A null value is a field that is blank, and signifies missing or unknown values. When you drag a measure or continuous date...
Read more >Errors - discord.js Guide
This error originates from calling EmbedBuilder#addFields() with a field object's name property as an empty string. If you would like the title ...
Read more >Identifying null SQL values with null indicator variables - IBM
The unspecified indicator variable error is returned when applications fetch a result-set that contains NULL values but fail to specify a null indicator....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since this confusion has come up multiple times now, I think we can just make them non-null only. The case of having both null doesn’t really do anything in the first place.
ok, can i be assigned for this.