question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When one embed field value is set null it results in an errror

See original GitHub issue

General 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 Screenshot 2022-05-16 at 18 17 58

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:closed
  • Created a year ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
MinnDevelopmentcommented, May 16, 2022

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.

0reactions
RealYusufIsmailcommented, May 16, 2022

ok, can i be assigned for this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found