NullPointer Exception when fetching Newcastle
Opened this issue · 2 comments
jenshoffmann1331 commented
Fix: Newcastle UK -> Newcastle GB
diff --git a/src/main/java/org/infinispan/tutorial/embedded/WeatherApp.java b/src/main/java/org/infinispan/tutorial/embedded/WeatherApp.java
index cc029b8..02973ce 100644
--- a/src/main/java/org/infinispan/tutorial/embedded/WeatherApp.java
+++ b/src/main/java/org/infinispan/tutorial/embedded/WeatherApp.java
@@ -6,7 +6,7 @@ import org.infinispan.manager.EmbeddedCacheManager;
public class WeatherApp {
static final String[] locations = { "Rome, Italy", "Como, Italy", "Basel, Switzerland", "Bern, Switzerland",
- "London, UK", "Newcastle, UK", "Bucarest, Romania", "Cluj-Napoca, Romania", "Ottawa, Canada",
+ "London, UK", "Newcastle, GB", "Bucarest, Romania", "Cluj-Napoca, Romania", "Ottawa, Canada",
"Toronto, Canada", "Lisbon, Portugal", "Porto, Portugal", "Raleigh, USA", "Washington, USA" };
private final EmbeddedCacheManager cacheManager;
private final WeatherService weatherService;
Shengche commented
I fixed this issue and modified open weather map api parameters, can i make a pull request on Step 0?
tristantarrant commented
yes please