[Solved] Tiled Map Layer collision null pointer exception

For the the moment I just want to print out the property I put in the tiles of a single layer if the player walks on it. I am getting a nullpointer exception every time I walk on one of those tiles for some reason and I can’t figure out why.

if (Gdx.input.isKeyJustPressed(Keys.A)) {
		
				if(collisionLayer.getCell(playerScaledX - 1, playerScaledY).getTile() != null){
			System.out.println(collisionLayer.getCell(playerScaledX  - 1, playerScaledY).getTile().getProperties().get("boolean").toString());
			
			}
				playerX -= 16;
				isUpdated = true;
			}
			
			}

This is how I’m creating my collision layer object:


 collisionLayer = (TiledMapTileLayer) MapManager.map.getLayers().get("Collision");