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

Disable "Save Grade" button when student is not known #206

Open
DavidWhitlock opened this issue Jul 15, 2017 · 0 comments
Open

Disable "Save Grade" button when student is not known #206

DavidWhitlock opened this issue Jul 15, 2017 · 0 comments

Comments

@DavidWhitlock
Copy link
Collaborator

In the POA grading program, the "Save Grade" button is enabled when the student is unknown. When you try to click the button in this state, you get:

java.lang.NullPointerException
	at edu.pdx.cs410J.grader.poa.GradeBookPresenter.recordGradeInGradeBook(GradeBookPresenter.java:47)
	at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
	at com.google.common.eventbus.EventBus.post(EventBus.java:275)
	at edu.pdx.cs410J.grader.poa.POAGradePresenter.publishScoreToMessageBusAndDisplayNextPOA(POAGradePresenter.java:45)
	at edu.pdx.cs410J.grader.poa.POAGradePresenter$$Lambda$26/58940486.recordGrade(Unknown Source)
	at edu.pdx.cs410J.grader.poa.ui.POAGradeWidgets.lambda$addRecordGradeHandler$31(POAGradeWidgets.java:96)
	at edu.pdx.cs410J.grader.poa.ui.POAGradeWidgets$$Lambda$27/501107890.actionPerformed(Unknown Source)

In this state, the "Grade" text field is disabled. We should also disable the "Save Grade" button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant