Copy Code. Posted Nov am nachiket dave. Updated Nov am thatraja. Add a Solution. Hey thanks i moved my con object to connect method instead of display and it worked Accept Solution Reject Solution. Read about Java error java. Fix it yourself. Posted Nov am thatraja. Add your solution here. OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account.
This email is in use. Do you need your password? Submit your solution! The cookie is used to store the user consent for the cookies in the category "Other. The cookie is used to store the user consent for the cookies in the category "Performance". It does not store any personal data.
Functional Functional. Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features. Performance Performance. Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors. Analytics Analytics. Analytical cookies are used to understand how visitors interact with the website.
These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc. Advertisement Advertisement. Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads. Others Others. Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". Well it looks like column1 doesn't have a value for one row As you're calling getString the toString call is pointless anyway, so you could rewrite it as:. The return value of r.
You have to check for null values before you use the return value. You don't need to to call toString here. The getString method already returns a string. You don't say where exactly in your code the exception occurs. The most likely causes are that s is null or that r. If its the first line that you posted that throws the error my guess would be that the variable s is null not initialized , but since you don't tell us exactly what line of your code throws the error its hard to tell.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 10 years, 3 months ago. Active 10 years, 3 months ago. Viewed 5k times.
0コメント