Jump to content

Custom DataSource - next() and getFieldValue()


PantheosMax

Recommended Posts

Hi everyone,

i have a CustomDataSource that, at its core, uses a Java ArrayList. What is the correct way to cycle trough the ArrayList using the next() procedure?

Right now, i have a simple int i, that gets incremented with each next(), and getFieldValue uses myArrayList.get(i).

But i have Problems with NullPointerExceptions, so my question is: Which is called first? next() oder getFieldValue? I have to increment my i accordingly

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...