Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New questions added do not show in quiz #90

Closed
josemvidal opened this issue Mar 9, 2019 · 1 comment
Closed

New questions added do not show in quiz #90

josemvidal opened this issue Mar 9, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@josemvidal
Copy link
Member

I added 2 new questions via the GUI and they did not show up on the quiz.

I restarted the app, but the new questions still no show.

They did get written to the file, but with a blank line:

Which of these films was not filmed in South Carolina?,Forrest Gump, Swamp Thing, Halloween (2018),The Last Song,3
Where does the name 'Pee Dee' come from?,Color of the Pee Dee river,Because that's how people say 'Petey' in South Carolina,Original name of the state,Native American Tribe,2
When was USC founded?,1901,1876,1791,1801,0
How many islands does SC have?,4,12,18,34,1
What is the state fruit?,Apples,Oranges,Cherries,Peaches,4

What is your favorite color?,Red,White,Blue	,Blue,1

How many rivers?,1	,3,3,4,22

Also, the program prints out this error:

> java -jar teamMuseumKiosk.jar                                                 1186ms < Sat 14:55
java.lang.IndexOutOfBoundsException: toIndex = 5
	at java.util.SubList.<init>(AbstractList.java:622)
	at java.util.RandomAccessSubList.<init>(AbstractList.java:775)
	at java.util.AbstractList.subList(AbstractList.java:484)
	at controllers.QuestionController.loadData(QuestionController.java:157)
	at controllers.QuestionController.initialize(QuestionController.java:48)
	at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
@josemvidal josemvidal added the bug Something isn't working label Mar 9, 2019
@josemvidal josemvidal added this to the Beta Release milestone Mar 9, 2019
@macsc97 macsc97 self-assigned this Apr 4, 2019
@macsc97
Copy link
Contributor

macsc97 commented Apr 4, 2019

Questions are properly added to the list without spacing now and no errors occur on loading new questions

@macsc97 macsc97 closed this as completed Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants