#variable cant sent through webhook
23 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @gleaming willow! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
What exactly is the error?
I would think it’s because the string ip isn’t initialized
It's declared in the wrong scope
declaring inside a block does not expose the name to the outer scope
declare it before the try block
initialize inside
how do i do that? as i need the try block
declare the variable outside the block before, initialize inside
okay but will it have the value of the initialized variable or the first one
well i tried it and it still throws an error
@marble bramble
Type variable = null;
try {
variable = foo();
} catch ...
bar(variable);
whats the difference between Type variable; and Type variable = null;
depending on what happens in the catvh block the compiler might complain about the first
yeah that probably was my error
one last thing. when i try and run it this shows in the terminal
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
You need to add a log4j provider
whats that
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.